Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ton-blockchain/acton/llms.txt
Use this file to discover all available pages before exploring further.
acton new creates a fully-initialized TON smart contract project in a new
directory. It copies the selected template scaffold, writes starter files such
as Acton.toml, .env.example, .editorconfig, and .gitignore, installs
the bundled standard library, and optionally sets up Git hooks and an
AGENTS.md coding-agent guidance file. When git is available in PATH the
command also runs git init and git add . inside the new directory — no
initial commit is created.
Synopsis
Arguments & options
Positional
| Argument | Description |
|---|---|
<PATH> | Directory to create the project in. Use . to scaffold into the current directory. Required unless --templates is passed. |
Project options
| Flag | Type | Default | Description |
|---|---|---|---|
--name <NAME> | string | directory name | Project name written to Acton.toml. Interactive mode prompts when omitted. |
--description <DESC> | string | A TON blockchain project | Project description written to Acton.toml. |
--template <TEMPLATE> | enum | prompted | Template to use. See Templates below. |
--license <LICENSE> | string | MIT | SPDX license identifier. Acton writes a LICENSE file for built-in templates. |
--app | flag | false | Include the TypeScript app scaffold when the template supports it. |
--hooks | flag | false | Create and install the default project-local Git hooks. |
--agents | flag | false | Include an AGENTS.md file with coding-agent guidance. |
--overwrite | flag | false | Overwrite existing files that collide with template paths. |
Global flags
| Flag | Type | Default | Description |
|---|---|---|---|
--color <WHEN> | auto | always | never | auto | Control coloured output. |
--manifest-path <PATH> | path | — | Accepted for CLI consistency; acton new does not load an existing manifest. Conflicts with --project-root. |
--project-root <PATH> | path | — | Accepted for CLI consistency; acton new does not require an existing project root. Conflicts with --manifest-path. |
Templates
- empty
- counter
- jetton
- nft
- w5-extension
A minimal project skeleton with an empty contract, no tests or scripts.
Use this as a blank canvas when none of the other templates fit your use case.
All built-in templates support
--app. With --app, Acton adds a Vite-based
React app under app/, generated TypeScript wrappers under wrappers-ts/,
and top-level package.json / package-lock.json files. Run npm ci before
using frontend commands. There are no separate counter-app, jetton-app, or
nft-app template names — use --template counter --app (etc.) instead.TypeScript app layout
When--app is used the project gets:
contracts/src/— contract sources and shared Tolk typescontracts/tests/— testscontracts/wrappers/— generated Tolk wrapperscontracts/scripts/— deployment and utility scriptswrappers-ts/— generated TypeScript wrappersapp/— React + Vite frontend
Interactive mode
When standard input and output are both connected to a terminal,acton new
uses a short interactive flow asking for:
- Project name
- Template
- Whether to include the TypeScript app layout
- Whether to configure advanced options (description, license, Git hooks, AGENTS.md)
--name, --template, and any other flags to avoid
prompts entirely.