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> --module=<m>Creates a UI page.
Stateair g state <name> --module=<m>Creates reactive state.
Serviceair g service <name> --module=<m>Creates a business service.
Modelair g model <name> --module=<m>Creates a data model.
Adapterair g adapter <name>Creates a headless adapter.

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

Installs the Air Framework AI agent skill so coding agents (Antigravity, Claude Code, OpenCode, Cursor) understand the framework automatically.

Terminal window
# Interactive selection
air skills install
# Specific agent
air skills install cursor
# All agents
air skills install all

See the AI Agent Skills guide for details.

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