CLI tool to initialize Flutter projects with clean architecture (data / domain / presentation) and to generate feature modules, using Mason templates, get_it + injectable, and go_router.
- Dart SDK
^3.5.0 - Flutter SDK on
PATH(forinitand generated apps)
dart pub global activate --source path .Ensure Pub’s bin directory is on your PATH, then run flutter_clean_arch_scaffold_cli.
dart pub global activate flutter_clean_arch_scaffold_cli| Command | Description |
|---|---|
flutter_clean_arch_scaffold_cli init <project_name> |
Runs flutter create, applies core templates, adds dependencies, runs build_runner. |
flutter_clean_arch_scaffold_cli feature <feature_name> |
Generates lib/features/<name>/ and inserts a GoRoute between fca:routes markers. |
flutter_clean_arch_scaffold_cli codegen |
Runs dart run build_runner build --delete-conflicting-outputs. |
-v, --verbose— verbose logs.--no-interactive— no prompts (CI-friendly).
flutter_clean_arch_scaffold_cli init my_app
cd my_app
flutter_clean_arch_scaffold_cli feature user_profile
flutter_clean_arch_scaffold_cli feature auth --route /login --project-root .lib/core/— DI (injection.dart), router (app_router.dart), errors, theme, docs.lib/features/<feature>/—data/,domain/,presentation/.
This package ships Mason bricks from the bricks/ directory next to lib/. After dart pub publish, consumers resolve bricks via the published package layout.
See LICENSE.