Skip to content

Installation

To get started with Air Framework, you need to add the core packages to your Flutter project and install the CLI for the best developer experience.

Add air_framework to your pubspec.yaml:

dependencies:
air_framework: ^1.0.0

For the reactive state management and code generation, add these to your dev_dependencies:

dev_dependencies:
air_generator: ^1.0.0
build_runner: ^2.4.0

The Air CLI is the recommended way to create projects and scaffold modules. Activate it globally using Dart:

Terminal window
dart pub global activate air_cli

Run the following command to verify that the CLI is correctly installed:

Terminal window
air doctor

This will check your environment and ensure everything is ready for development.