Getting Started

The DCFlight CLI is your primary tool for creating, running, and managing DCFlight projects. Here's how to get started:

Install the DCFlight CLI

Install globally using Dart:

dart pub global activate dcflight_cli

Verify installation:

dcf --help

Create a New Project

Create a new DCFlight app:

dcf create app my_app
cd my_app

Run Your App

Start the development server with hot reload:

dcf go

Other useful options:

dcf go --verbose      # Verbose output
dcf go --no-hot-reload # Disable hot reload
dcf go --dcf-args="--debug" # Pass Flutter args

Add & Remove Packages

Add dependencies to your project:

dcf inject dio
# Add as dev dependency
dcf inject lints --dev

Remove unused packages:

dcf eject dio
dcf eject lints --dev

Help & Troubleshooting

Show all CLI commands and options:

dcf --help
dcf go --help
dcf inject --help
dcf eject --help
dcf create --help