CLI Reference
The Air CLI is your Swiss Army knife for building modular Flutter apps.
Installation
Section titled “Installation”dart pub global activate air_cliCommands
Section titled “Commands”air create
Section titled “air create”Initializes a new Air project.
air create <project_name> --org=com.example --template=starterair generate (alias: g)
Section titled “air generate (alias: g)”Scaffolds various framework components.
| Type | Command | Description |
|---|---|---|
| Module | air g module <name> | Creates a feature module. |
| Screen | air g screen <name> | Creates a UI page. |
| State | air g state <name> | Creates reactive state. |
| Service | air g service <name> | Creates a business service. |
| Model | air g model <name> | Creates a data model. |
air module
Section titled “air module”Manages external modules.
# Add from Gitair module add https://github.com/user/module.git
# Add from Local Pathair module add /path/to/local/moduleair doctor
Section titled “air doctor”Diagnoses your project and environment.
air doctorBest Practices
Section titled “Best Practices”Always use the CLI to generate modules and state to ensure naming conventions and directory structures are followed.