Skip to content

Commands overview

Terminal window
dart run stackchain <command>

No command? Same as init.

Command What it does
init Scaffold the whole app
feature <name> Add a feature (files + routes + DI + tests)
crud <entity> Feature + list tile, form, and form tests
api <spec> Models + API repos from OpenAPI (re-run safe)
test <feature> Generate unit / widget / integration tests
stub <feature> Placeholder tests for // <stackchain:custom> methods
rename <from> <to> Rename a feature
remove <name> Remove a feature
sync Re-wire router & DI
upgrade Refresh dependencies
migrate Switch architecture / state / routing / DI / preset
doctor [--fix] Health check; --fix syncs + refreshes lock
presets List built-in presets
Command What it does
make page|widget|service <name> Generate a single piece
list List available generators
new <name> Create a custom generator
help [command] Help for a command
Flag Meaning
--dry-run Preview, don’t write
--overwrite / -f Overwrite / refresh existing files
--skip-analyze Skip analyzer in the quality check
--path / -p Project root (default: current folder)
Terminal window
dart run stackchain help test
dart run stackchain api openapi.yaml
dart run stackchain doctor --fix