raunak_cli 1.0.0 copy "raunak_cli: ^1.0.0" to clipboard
raunak_cli: ^1.0.0 copied to clipboard

A Dart CLI to generate Flutter projects with a clean architecture setup, folder structure, and essential boilerplate.

๐Ÿ› ๏ธ Raunak CLI Dart โ€“ Flutter Clean Architecture Generator #

A powerful CLI tool to scaffold production-ready Clean Architecture Flutter projects using layered architecture and opinionated best practices.


๐Ÿš€ Features #

  • dart pub global activate raunak_cli:

    • Activate me globally
  • dart run raw_cli_dart.dart init <project_name>:

    • Creates a Flutter project with flutter create
    • Generates a scalable Clean Architecture folder structure
    • Prompts for:
      • Primary theme color
      • Network client: dio, http, or none
    • Adds and installs essential dependencies:
      • dio, google_fonts, flutter_dotenv, flutter_secure_storage, go_router
  • Generates boilerplate for:

    • main.dart entry
    • AppTheme for light/dark mode
    • API Client (if network is enabled)
    • Routing (app_routes.dart, navigate.dart)
    • Local storage wrapper (local_storage.dart)
    • Environment config (env.config.dart)
    • Constants and API endpoints
    • Token management

๐Ÿงช Usage #

To initialize a project:

dart run bin/raw_cli_dart.dart init my_app
During setup, it will ask:
๐ŸŽจ Primary Color Hex
(Default: 0xFF2196F3)

๐ŸŒ Network Client
dio / http / none

๐Ÿ“ฆ Default Dependencies
These dependencies are automatically added:

dependencies:
  dio: any
  google_fonts: any
  flutter_dotenv: any
  flutter_secure_storage: any
  go_router: any
Additional user-defined dependencies will also be appended if provided.

๐Ÿงฉ Coming Soon
generate:feature <name> โ€“ Create a new feature module with all 3 layers.

generate:model <name> โ€“ Scaffold domain entity and model files.

init --with-auth โ€“ Add secure login/signup module.

init --with-supabase โ€“ Backend-as-a-Service bootstrapping.

๐Ÿ‘จโ€๐Ÿ’ป Author
Made with โค๏ธ by Raunak Pandey

Feel free to star ๐ŸŒŸ and contribute on GitHub

๐Ÿ“„ License
MIT โ€“ Free to use, extend, and contribute.

---
0
likes
0
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart CLI to generate Flutter projects with a clean architecture setup, folder structure, and essential boilerplate.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, path

More

Packages that depend on raunak_cli