DEV Community

Cover image for I built a Flutter CLI that generates Clean Architecture in seconds
Sunny Singh
Sunny Singh

Posted on

I built a Flutter CLI that generates Clean Architecture in seconds

After 5+ years of Flutter development, I got tired of setting up the same boilerplate every project.

So I built SM CLI

Install

dart pub global activate sm_cli
Enter fullscreen mode Exit fullscreen mode

Usage

sm init my_app
cd my_app
sm make feature auth
sm make api
flutter run
Enter fullscreen mode Exit fullscreen mode

What you get

✅ Clean Architecture (Data, Domain, Presentation)
✅ Riverpod, Bloc, GetX, Provider support
✅ GoRouter auto setup
✅ Dio API layer with interceptors
✅ Auto route generation

5 commands. Production-ready architecture. Done.

🔗 https://pub.dev/packages/sm_cli
https://github.com/flutterbysunny/sm_cli

Would love your feedback! 🙏

Top comments (0)