raunak_cli 1.0.1+2
raunak_cli: ^1.0.1+2 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 the CLI globally from pub.dev
๐น raunak-cli init <project_name> #
- Creates a Flutter project using
flutter create - Generates a scalable Clean Architecture folder structure
- Prompts you for:
- ๐จ Primary theme color (default:
0xFF2196F3) - ๐ Network client:
dio,http, ornone
- ๐จ Primary theme color (default:
- Adds and installs essential dependencies:
dio,google_fonts,flutter_dotenv,flutter_secure_storage,go_router
๐ Generated Structure #
lib/
โโโ config/
โ โโโ theme/
โ โ โโโ app\_theme.dart
โ โโโ routes/
โ โ โโโ app\_routes.dart
โ โ โโโ navigate.dart
โ โโโ env/
โ โ โโโ env.config.dart
โ โโโ storage/
โ โโโ local_storage.dart
โโโ core/
โ โโโ entities/
โ โโโ models/
โ โโโ usecases/
โ โโโ datasources/
โ โ โโโ local/
โ โ โ โโโ user\_token.dart
โ โ โโโ remote/
โ โ โโโ api\_client.dart
โ โโโ utils/constants/
โ โ โโโ api\_endpoints.dart
โ โโโ error/
โโโ features/
main.dart
.env
๐งช Usage #
โ Step-by-step #
# Activate globally
dart pub global activate raunak_cli
# Create a new clean Flutter project
raunak-cli init my_app
During Setup: #
- ๐จ Enter Primary Color Hex (e.g.
0xFF4CAF50) - ๐ Choose Network Client:
dio,http, ornone
๐ฆ Default Dependencies Added #
dependencies:
dio: any
google_fonts: any
flutter_dotenv: any
flutter_secure_storage: any
go_router: any
You can also input additional dependencies during setup.
๐งฉ Coming Soon #
generate:feature <name>โ Create a feature module (Domain, Data, and Presentation layers)generate:model <name>โ Scaffold domain entities and data modelsinit --with-authโ Bootstrap login/signup and auth flow
๐จโ๐ป Author #
Made with โค๏ธ by Raunak Pandey GitHub: @raunak-dows17
If you like this tool, don't forget to โญ๏ธ the repo and share it with your Flutter friends!