A Flutter CLI by XitoDev that scaffolds complete, compilable projects with Clean Architecture, GoRouter, adaptive UI and selectable state management.
- UI:
material_ui,cupertino_ui, oradaptive(default) selected at creation time. - State management:
riverpod(default) orminimal_mvn. - Routing:
go_routerwith a working sample route. - Sample feature: datasource, model, repository, entity, use case, state and screen.
- Agent support:
AGENTS.mdand.xdevs_cli.jsonin every generated project. - Code generation:
build_runnerruns automatically for Riverpod.
flutter create owns pubspec.yaml, .gitignore and README.md; the brick only adds lib/, test/ and the agent instructions.
dart pub global activate xdevs_cliAgents should not guess flags. Read the machine-readable manifest:
xdevs_cli manifestIt returns a JSON document with commands, options, aliases, defaults, examples and exit codes. create and feature also accept --json and print exactly one JSON result line on stdout.
An Agent Skill is included for assistants. Install it with:
dart run skills@ add https://github.com/XitoDev/xdevs_cli.git --allOr, if xdevs_cli is a dependency of the project:
dart run skills@ get xdevs_cli --allxdevs_cli create my_app
xdevs_cli create my_app -s minimal_mvn --ui adaptive
xdevs_cli create my_app --sm riverpod --ui cupertino --json| Option | Values | Default |
|---|---|---|
--state-management, -s, --sm |
riverpod, minimal_mvn |
riverpod |
--ui |
material, cupertino, adaptive |
adaptive |
--org, -o |
reverse-domain org | com.example |
--platforms, -p |
comma-separated platforms | all Flutter platforms |
--description, -d |
project description | generated description |
--directory |
existing base directory | current directory |
--json |
single JSON result on stdout | off |
The created project is ready to run:
cd my_app
flutter runRun this inside the project or pass --directory:
xdevs_cli feature auth
xdevs_cli feature auth,home,profile
xdevs_cli f orders --jsonExisting features are skipped. State management and UI style are read from .xdevs_cli.json, so features match the project.
xdevs_cli config --state-management minimal_mvn --ui material
xdevs_cli config --org com.mycompany --platforms android,ios,webWithout a terminal, at least one option is required.
0 success, 64 usage error, 65 data error, 70 software error.
dart pub get
dart run build_runner build -d
dart format bin lib test
dart analyze --fatal-infos
dart test