CLI reference
dart run stackchain [global-options] <command> [command-options]No command ⇒ init.
Global options
Section titled “Global options”| Flag | Short | Description |
| — | — |
| --help | -h | Usage |
| --overwrite | -f | Overwrite files |
| --dry-run | | No writes |
| --verbose | -v | Verbose |
| --skip-analyze | | Skip analyze |
| --path | -p | Project root |
Commands
Section titled “Commands”| Command | Args | Notes |
| — | — |
| help | [command] | |
| init | | Full scaffold |
| feature | <name> | Add a feature |
| add | <name> | Same as feature |
| crud | <entity> | Feature + list/form extras |
| test | <feature> or --all | Unit / widget / integration tests |
| stub | <feature> or --all | Placeholder tests for custom methods |
| api | <spec> | OpenAPI → models + API repos |
| remove | <name> | Delete a feature |
| rename | <from> <to> | Rename a feature |
| sync | | Re-wire routes & DI |
| upgrade | | Refresh deps |
| migrate | stack flags | Switch stack |
| doctor | [--fix] | Health check; --fix repairs |
| presets | | List presets |
| make | <type> <name> | page / widget / service |
| list | | List generators |
| new | <name> | Custom generator |
migrate flags
Section titled “migrate flags”--architecture --state --routing --di --network --preset --keep-old --dry-run --skip-analyze
test flags
Section titled “test flags”--type/-t unit,widget,integration --all/-a --overwrite --stub-custom / --no-stub-custom --dry-run --skip-analyze --name/-n
stub flags
Section titled “stub flags”--all/-a --dry-run --name/-n
api flags
Section titled “api flags”--spec/-s --overwrite --dry-run --skip-analyze
doctor flags
Section titled “doctor flags”--fix --skip-analyze
rename flags
Section titled “rename flags”--from --to --dry-run --skip-analyze
make flags
Section titled “make flags”--name/-n --var/-V key=value (multi) --overwrite --dry-run --skip-analyze