project_gen_cli

project_gen_cli CLI is a Dart command-line tool that helps you quickly scaffold feature-based folder structures for Flutter projects. With a single command, it creates all necessary directories (like views, widgets, and providers) and auto-generates a starter Dart file for each feature. This tool saves you time and enforces consistent project architecture for teams and solo developers alike.


🚀 Installation

To use the project_gen_cli CLI tool, you need to activate it globally using pub.

Run the following command in your terminal:

dart pub global activate project_gen_cli
dart pub global run project_gen_cli profile settings
## 📂 Example Structure
lib/
 └── features/
     └── profile/
         ├── presentation/
         │   ├── views/
         │   │   └── profile_view.dart
         │   └── widgets/
         └── providers/

✨ Features

✅ Generate feature folders with:

  • presentation/views
  • presentation/widgets

✅ Generate Routes filr with:

  • all views

deletion

to delete cli tool

dart pub global deactivate project_gen_cli

✅ Highlights:

Clean feature-first folder structure
Auto-generates Dart files like profile_view.dart
Simple and fast CLI
Customizable base path
Ready to be used in teams and real projects

✅ Example Output

Building package executable... 
Built project_gen_cli:project_gen_cli.
📝 Created file: lib/features/profile/presentation/views/profile_view.dart
✅ Created: lib/features/profile/presentation/widgets
✅ Created: lib/features/profile/providers
✅ Created: lib/features/orders/presentation/views
📝 Created file: lib/features/orders/presentation/views/orders_view.dart
✅ Created: lib/features/orders/presentation/widgets
✅ Created: lib/features/orders/providers
🎉 All done!

Libraries

project_gen_cli