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_cliVerify installation:
dcf --helpCreate a New Project
Create a new DCFlight app:
dcf create app my_app
cd my_appRun Your App
Start the development server with hot reload:
dcf goOther useful options:
dcf go --verbose # Verbose output
dcf go --no-hot-reload # Disable hot reload
dcf go --dcf-args="--debug" # Pass Flutter argsAdd & Remove Packages
Add dependencies to your project:
dcf inject dio
# Add as dev dependency
dcf inject lints --devRemove unused packages:
dcf eject dio
dcf eject lints --devHelp & Troubleshooting
Show all CLI commands and options:
dcf --help
dcf go --help
dcf inject --help
dcf eject --help
dcf create --help