flavor_cli 0.0.10 copy "flavor_cli: ^0.0.10" to clipboard
flavor_cli: ^0.0.10 copied to clipboard

A production-grade CLI tool for automating Flutter flavor configuration, Firebase environment management, and boilerplate generation for scalable apps.

example/README.md

🍹 Flavor CLI — Example #

This example demonstrates how to use flavor_cli to generate and manage Flutter flavors in a real project.

It serves as a reference implementation showing how to structure and run a multi-environment Flutter app using automated flavor setup.


📂 Access the Full Example Project #

👉 https://github.com/Moo-Meshrif/flavor_cli/tree/main/example

This is a fully working Flutter app configured with multiple flavors (dev, stage, prod).


🚀 Run the Example Locally #

Clone the repository and navigate to the example project:

git clone https://github.com/Moo-Meshrif/flavor_cli.git
cd flavor_cli/example
flutter pub get

▶️ Run Each Flavor #

Each environment has its own entry point. Use the flavor_cli run wrapper for a simplified experience:

🔵 Development #

dart run flavor_cli run dev

🟡 Staging #

dart run flavor_cli run stage

🔴 Production #

dart run flavor_cli run prod

📦 Project Structure #

example/
├── lib/
│   ├── main/
│   │   ├── main_dev.dart
│   │   ├── main_stage.dart
│   │   └── main_prod.dart
│   └── app_config.dart
├── android/
├── ios/
└── pubspec.yaml

🧠 How It Works #

flavor_cli automates the complex and repetitive parts of flavor setup:

  • Eliminates manual Gradle configuration
  • Avoids manual iOS scheme setup
  • Uses a clean Zero-XCConfig approach
  • Standardizes environment configuration

⚠️ Important #

pub.dev does not run example apps.

This page is for documentation only.
To test the example, clone the repository and run it locally using the steps above.

3
likes
160
points
94
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A production-grade CLI tool for automating Flutter flavor configuration, Firebase environment management, and boilerplate generation for scalable apps.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, mason_logger, path, yaml, yaml_edit

More

Packages that depend on flavor_cli