Skip to content
XitoDevPublic

About

A Flutter Command-Line Interface designed by XitoDev to quickly bootstrap scalable Flutter projects and feature modules based on Clean Architecture principles.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

xdevs_cli

License: MIT

A Flutter CLI by XitoDev that scaffolds complete, compilable projects with Clean Architecture, GoRouter, adaptive UI and selectable state management.

What is included

  • UI: material_ui, cupertino_ui, or adaptive (default) selected at creation time.
  • State management: riverpod (default) or minimal_mvn.
  • Routing: go_router with a working sample route.
  • Sample feature: datasource, model, repository, entity, use case, state and screen.
  • Agent support: AGENTS.md and .xdevs_cli.json in every generated project.
  • Code generation: build_runner runs automatically for Riverpod.

flutter create owns pubspec.yaml, .gitignore and README.md; the brick only adds lib/, test/ and the agent instructions.

Getting started

dart pub global activate xdevs_cli

For humans and agents

Agents should not guess flags. Read the machine-readable manifest:

xdevs_cli manifest

It 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 --all

Or, if xdevs_cli is a dependency of the project:

dart run skills@ get xdevs_cli --all

Create a project

xdevs_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 run

Create features

Run this inside the project or pass --directory:

xdevs_cli feature auth
xdevs_cli feature auth,home,profile
xdevs_cli f orders --json

Existing features are skipped. State management and UI style are read from .xdevs_cli.json, so features match the project.

Configure defaults

xdevs_cli config --state-management minimal_mvn --ui material
xdevs_cli config --org com.mycompany --platforms android,ios,web

Without a terminal, at least one option is required.

Exit codes

0 success, 64 usage error, 65 data error, 70 software error.

Development

dart pub get
dart run build_runner build -d
dart format bin lib test
dart analyze --fatal-infos
dart test

About

A Flutter Command-Line Interface designed by XitoDev to quickly bootstrap scalable Flutter projects and feature modules based on Clean Architecture principles.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages