raunak_cli 1.0.0
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
- Creates a Flutter project with
-
Generates boilerplate for:
main.dartentryAppThemefor light/dark modeAPI 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.
---