Acton CLI workflow for TON smart contract development in Tolk: install/update, project bootstrap, Acton.toml configuration, build/compile/wrapper generation, tests with coverage/gas/fuzz/mutation/UI, scripts and deployment, wallets, verification, RPC inspection, libraries, lint/format/hooks, LSP/completions, and troubleshooting.
Instalación
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Acton CLI workflow for TON smart contract development in Tolk: install/update, project bootstrap, Acton.toml configuration, build/compile/wrapper generation, tests with coverage/gas/fuzz/mutation/UI, scripts and deployment, wallets, verification, RPC inspection, libraries, lint/format/hooks, LSP/completions, and troubleshooting.
Acton TON CLI Workflow
Source of truth
Prefer the exact installed binary for command spelling and behavior:
acton --version
acton --help
acton help <command>
acton <command> --help
Use official hosted docs for current concepts, tutorials, and full reference:
Use the official examples repo for real project patterns and reference contracts:
https://github.com/ton-blockchain/acton-contracts
Read bundled references only when needed:
references/command-map.md for fast command selection
references/troubleshooting.md for common failure modes
Do not assume local paths, private checkouts, or a specific developer machine.
Use GitHub source only when the user explicitly asks to inspect upstream implementation. Treat acton-contracts as examples of project structure and contract patterns, not as the source of truth for CLI flags.
If docs and the installed CLI disagree, state the Acton version and follow the installed CLI for that local workflow. If the user wants latest behavior, suggest acton up or the install/update flow first.
First-release exclusions
Do not recommend acton localnet or --net localnet. That feature may remain visible in source or trunk help, but it is excluded from the first release and should be treated as unavailable in public workflows.
Install or update Acton
If acton is missing and the task requires running it, install the public binary:
curl -LsSf https://github.com/ton-blockchain/acton/releases/latest/download/acton-installer.sh | sh
Then open a fresh shell or reload the updated shell profile if needed, and verify:
acton --version
acton --help
Update and version management:
acton up installs the latest stable release.
acton up --list lists available versions.
acton up <version> installs a specific version.
acton up --trunk installs the latest trunk build when supported by the installed CLI.
In CI, prefer ton-blockchain/setup-acton@master or the published ghcr.io/ton-blockchain/acton:<version> image.
First checks in any project
Confirm tool and project context:
acton --version
acton doctor
pwd
If running from outside the project, select context explicitly:
acton --project-root <PATH> ...
acton --manifest-path <PATH>/Acton.toml ...
Inspect the relevant command help before relying on memory:
acton help build
acton help test
acton help script
Inspect Acton.toml for the sections that matter:
[package]
[contracts]
[build]
[wrappers.tolk]
[wrappers.typescript]
[fmt]
[test]
[lint]
[networks]
[scripts]
[import-mappings]
Project-root rule: config-relative paths are resolved from the project root. Relative CLI path flags are resolved from the current working directory unless passed as absolute paths.
Project bootstrap
Use acton new [path] --template empty|counter|jetton|nft for a fresh project.
Useful acton new flags:
--name, --description, --license
--app for the TypeScript/Vite app scaffold when the template supports it
--hooks for default project Git hooks
--agents for generated coding-agent guidance
Use acton init to add Acton support to an existing directory.
Useful acton init modes:
acton init --create-app [path] creates only the TypeScript app scaffold
acton init --stdlib-only refreshes only the bundled standard library
acton init can patch default [import-mappings] into an existing manifest, but that rewrite may drop TOML comments and unknown keys.
Build, compile, and wrappers
acton build [contract-name]
Builds all contracts, or one contract plus transitive dependencies.
Warn once before acton script --net mainnet, acton verify, acton library publish, or acton library topup.
State wallet, network, project-root, and Acton version assumptions explicitly when they affect the result.
Do not invent commands or flags. Verify with acton help <command> when unsure.
Do not use old examples with acton litenode, [mappings], --broadcast, --api-key, or acton up --canary unless the user's installed binary explicitly supports them.
Use TON docs for blockchain concepts that Acton docs do not cover; use Acton docs for CLI behavior.