CLI Command Reference
Project management
stacksdapp new <name>
Scaffold a new Scaffold Stacks project.
stacksdapp add <name>
Add a new Clarity contract.
contracts/contracts/my-contract.clar and updates configuration.
Templates
Development
stacksdapp dev
Start development server.
stacksdapp generate
Regenerate TypeScript bindings from contracts.
dev when contracts change.
Testing & validation
stacksdapp test
Run all tests.
stacksdapp check
Type-check Clarity contracts.
Deployment
stacksdapp deploy
Deploy contracts to network.
Deploy options
--network <network>: Target network (testnet,mainnet, ordevnet)--contract <name>: Deploy only one contract from your project--dry-run: Generate and print deployment plan, estimated fee, and contract list without broadcasting transactions
Networks
- testnet: Hiro testnet infrastructure
- mainnet: Stacks mainnet
- devnet: Local Docker environment
Maintenance
stacksdapp clean
Remove generated files and devnet state.
stacksdapp --version
Show CLI version.
Configuration files
Clarinet.toml
Contract configuration managed by CLI.
contracts/settings/*.toml
Network-specific settings:
Devnet.toml: Local developmentTestnet.toml: Testnet deploymentMainnet.toml: Mainnet deployment