Skip to content

CLI Reference

The Air CLI is your Swiss Army knife for building modular Flutter apps.

Terminal window
dart pub global activate air_cli

Initializes a new Air project.

Terminal window
air create <project_name> --org=com.example --template=starter

Scaffolds various framework components.

TypeCommandDescription
Moduleair g module <name>Creates a feature module.
Screenair g screen <name>Creates a UI page.
Stateair g state <name>Creates reactive state.
Serviceair g service <name>Creates a business service.
Modelair g model <name>Creates a data model.

Manages external modules.

Terminal window
# Add from Git
air module add https://github.com/user/module.git
# Add from Local Path
air module add /path/to/local/module

Diagnoses your project and environment.

Terminal window
air doctor

Always use the CLI to generate modules and state to ensure naming conventions and directory structures are followed.