fli 1.1.2 copy "fli: ^1.1.2" to clipboard
fli: ^1.1.2 copied to clipboard

A native CLI tool for generating clean and standardized Flutter project structures. Supports all platforms with optimized functionality for desktop use.

fli #

A powerful CLI tool for generating clean and standardized Flutter project structures.

πŸš€ Why fli? #

Every Flutter developer has faced this problem: inconsistent project structures across different projects and teams. fli solves this by providing:

  • Standardized Structure: Clean, organized folder structures that scale
  • Multiple Templates: Choose from various architectural patterns
  • Best Practices: Built-in Flutter and Dart best practices
  • Developer Friendly: Simple commands, interactive prompts
  • Extensible: Easy to customize and extend

πŸ“¦ Installation #

dart pub global activate fli

Option 2: Install from source #

git clone https://github.com/faizahmaddae/fli.git
cd fli
dart pub global activate --source path .

Option 3: Quick install script #

curl -fsSL https://rawgit.flutter-io.cn/faizahmaddae/fli/main/install.sh | bash

Note: Make sure ~/.pub-cache/bin is in your PATH to use fli directly.

πŸ› οΈ Usage #

Generate a new Flutter project (Complete & Ready to Use!) #

fli create my_app

That's it! Your Flutter project is completely ready to use. No need to run flutter create . or flutter pub get manually.

Interactive mode with template selection #

fli create my_app --interactive

Choose a specific template #

fli create my_app --template=clean_architecture

What you get out of the box: #

  • βœ… Complete Flutter project with all platform support
  • βœ… Template structure applied with best practices
  • βœ… Dependencies installed and ready to use
  • βœ… Tests included and passing
  • βœ… Documentation generated with template-specific guides
  • βœ… Ready to run with flutter run

Available templates #

  • basic - Simple, clean structure for small to medium apps
  • feature_driven - Feature-based organization
  • clean_architecture - Clean Architecture with proper separation
  • bloc_pattern - BLoC pattern implementation
  • provider_pattern - Provider state management structure

πŸ—οΈ Generated Structure Example #

my_app/
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ constants/
β”‚   β”‚   β”œβ”€β”€ errors/
β”‚   β”‚   β”œβ”€β”€ theme/
β”‚   β”‚   └── utils/
β”‚   β”œβ”€β”€ features/
β”‚   β”‚   └── home/
β”‚   β”‚       β”œβ”€β”€ data/
β”‚   β”‚       β”œβ”€β”€ domain/
β”‚   β”‚       └── presentation/
β”‚   β”œβ”€β”€ shared/
β”‚   β”‚   β”œβ”€β”€ widgets/
β”‚   β”‚   └── services/
β”‚   └── main.dart
β”œβ”€β”€ test/
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ icons/
β”‚   └── fonts/
└── doc/

🎯 Commands #

  • fli create <project_name> - Create a new Flutter project
  • fli templates - List available templates
  • fli --help - Show help information
  • fli --version - Show version

πŸ“š Documentation #

For comprehensive documentation, examples, and architectural guides:

πŸ“‹ Complete Template Documentation #

πŸš€ Templates #

🀝 Contributing #

We welcome contributions! Please feel free to submit issues and pull requests.

Contributing to Documentation #

Found something unclear or want to add examples? Check out our documentation contribution guide.

β˜• Support #

If you find this project helpful and would like to support its development, consider buying me a coffee!

Buy Me A Coffee

Your support helps maintain and improve this tool for the Flutter community.

πŸ“„ License #

MIT License - see LICENSE file for details.

3
likes
160
points
31
downloads

Publisher

verified publisherfaizahmaddae.com

Weekly Downloads

A native CLI tool for generating clean and standardized Flutter project structures. Supports all platforms with optimized functionality for desktop use.

Repository (GitHub)
View/report issues
Contributing

Topics

#cli #flutter #generator #scaffold #project-structure

Documentation

Documentation
API reference

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

args, mason, mason_cli, path, yaml

More

Packages that depend on fli