raihan_cli 2.2.0 copy "raihan_cli: ^2.2.0" to clipboard
raihan_cli: ^2.2.0 copied to clipboard

raihan_cli generates clean Flutter feature folders with Clean Architecture principles, supporting MVC and MVVM patterns, and integrates seamlessly with GetX, Provider, Riverpod, and BLoC state management.

๐Ÿ“ฆ Changelog #

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning.


2.2.0 - 2026-05-03 #

โœจ Enhancements #

  • Added support for nested subfolder format: parent/sub.
  • Updated subfolder generation to avoid saving config (persistConfig: false).
  • Fixed file naming and import generation for path-style features like auth/login.
  • Improved delete confirmation prompt format to (y/n).

๐Ÿงน New Remove Commands #

  • Added remove subfolder <parent/sub>.
  • Added remove elements <feature>.
  • Added remove ftof <feature/api>.
  • Added remove ftof-parent <feature>.

๐Ÿ—๏ธ Architecture + State Coverage #

  • Extended ftof generation to support all states and architectures.

๐Ÿ“š Documentation #

  • Added README docs for all newly introduced commands.
  • Preserved old README content while appending new command documentation.

2.1.0 - 2025-11-21 #

โœจ New Feature โ€” Clean Architecture Support #

  • ๐Ÿ› Clean Architecture Added

    • CLI now supports full Clean Architecture scaffolding.
    • Generates layered structure:
      • domain โ†’ entities, repositories, use cases
      • data โ†’ models, repository implementations, data sources
      • presentation โ†’ UI, controllers/state management
    • Architecture adapts automatically based on selected state management (GetX, Provider, BLoC, Riverpod).
  • ๐Ÿ“ Clean Architecture + State Management Integration

    • BLoC โ†’ auto-generates bloc, event, state under presentation/.
    • Riverpod โ†’ generates notifier + provider following domain-driven design.
    • GetX โ†’ controller generation with injected use cases.
    • Provider โ†’ ChangeNotifier generated using domain layer use cases.
  • ๐Ÿ›  CLI Updates

    • Added Clean Architecture as a new selectable architecture option.
    • Automatically creates layer-specific folders:
      • domain/usecases/
      • domain/repositories/
      • data/datasources/
      • data/repositories/
      • presentation/screens/
      • presentation/controllers/
    • Enhanced validation for feature names and duplicate layer checks.

๐Ÿ› ๏ธ Code Quality #

  • Modularized architecture generation logic.
  • Separated MVC, MVVM, and Clean Architecture generators.
  • Reduced duplicate file creation by implementing shared utilities.

2.0.0 - 2025-10-24 #

โœจ Enhancements #

  • ๐Ÿ›  State Management Support

    • Added GetX, Provider, BLoC, and Riverpod options for feature scaffolding.
    • CLI now prompts for state management on the first run and remembers the choice.
  • ๐Ÿ“ Improved Folder Structure Handling

    • Folder structures adapt automatically based on architecture + state management combination.
    • Automatic creation of repository folders and files for MVVM features.
    • BLoC scaffolding includes <feature>_bloc.dart, <feature>_event.dart, and <feature>_state.dart.
    • Riverpod scaffolding now splits provider logic into notifier + provider files for clean separation.
  • ๐Ÿ’ก Better CLI UX

    • Refined prompts for path type, state management, and architecture.
    • Clearer print statements for created folders and files.
    • Enhanced handling of existing folders and files with appropriate warnings.
  • โšก Configuration Improvements

    • Saves state management choice in the config file.
    • Handles custom paths more robustly.
    • Reduced redundant config file reads.

๐Ÿ› ๏ธ Code Quality #

  • Refactored feature creation logic to handle all combinations of MVC/MVVM + GetX/Provider/BLoC/Riverpod.
  • Improved maintainability of file/folder creation and prompts.
  • Consolidated exception handling and validation checks.

1.1.0 - 2025-09-25 #

โœจ Enhancements #

  • ๐Ÿงน Simplified user prompts

    • Path type input now strictly accepts 1 or 2, ensuring clearer validation and reducing accidental mis-entries.
    • Architecture selection refined to immediately validate input.
  • โšก Cleaner configuration handling

    • Removed unnecessary re-reads of the config file after saving.
    • Streamlined _saveConfig and _readConfig for better readability.
  • ๐Ÿ’ก Improved CLI UX

    • More consistent print statements and comments.
    • Reduced redundant logic while preserving all existing features.

๐Ÿ› ๏ธ Code Quality #

  • Refactored code blocks for improved maintainability and readability.
  • Consolidated repetitive checks and exception handling.

1.0.0 - 2025-09-23 #

๐ŸŽ‰ Initial release of raihan_cli!

โœจ Features #

  • ๐Ÿš€ Generate Flutter feature folders and files based on:
    • MVC architecture
    • MVVM architecture
  • ๐Ÿ“ Supports two path types:
    • Feature-based path: lib/src/features/<feature_name>
    • Custom path: lib/<custom_path>/<feature_name>
  • ๐Ÿง  Smart config saving for:
    • Preferred path type
    • Preferred architecture
  • ๐Ÿ—‘๏ธ Remove existing feature folders with confirmation prompt
  • ๐Ÿงฑ Auto-generate the following:
    • Controllers / ViewModels
    • Repository interfaces and implementations (for MVVM)
    • Models
    • Screens and widget directories

๐Ÿ“‚ Structure Examples #

  • lib/src/features/<feature_name>/ (default)
  • lib/<custom_path>/<feature_name>/ (custom path)

10
likes
140
points
189
downloads

Documentation

API reference

Publisher

verified publisherraihansikdar.com

Weekly Downloads

raihan_cli generates clean Flutter feature folders with Clean Architecture principles, supporting MVC and MVVM patterns, and integrates seamlessly with GetX, Provider, Riverpod, and BLoC state management.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on raihan_cli