Menu

I built a Flutter CLI that generates Clean Architecture in seconds
πŸ–ΌοΈ

I built a Flutter CLI that generates Clean Architecture in seconds

DEV Community: dartΒ·Sunny SinghΒ·5 months ago
#b8XQATBB
#dev#sm_cli#flutter#enter#photo
Reading 0:00
15s threshold
Cover image for I built a Flutter CLI that generates Clean Architecture in seconds

Sunny Singh

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! πŸ™