{"slug": "i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds", "title": "I built a Flutter CLI that generates Clean Architecture in seconds", "summary": "The article describes a new Flutter command-line tool called SM CLI, created by a developer with over five years of Flutter experience to automate the setup of Clean Architecture boilerplate. The tool can generate a full project structure with support for state management solutions like Riverpod and Bloc, along with GoRouter routing and a Dio API layer, using just five commands. It is available on pub.dev and GitHub for community feedback.", "body_md": "After 5+ years of Flutter development, I got tired of setting up the same boilerplate every project.\nSo I built SM CLI\ndart pub global activate sm_cli\nsm init my_app\ncd my_app\nsm make feature auth\nsm make api\nflutter run\n✅ Clean Architecture (Data, Domain, Presentation)\n✅ Riverpod, Bloc, GetX, Provider support\n✅ GoRouter auto setup\n✅ Dio API layer with interceptors\n✅ Auto route generation\n5 commands. Production-ready architecture. Done.\n🔗 https://pub.dev/packages/sm_cli\n⭐ https://github.com/flutterbysunny/sm_cli\nWould love your feedback! 🙏", "url": "https://wpnews.pro/news/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds", "canonical_source": "https://dev.to/flutterbysunny/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds-99l", "published_at": "2026-05-23 15:19:58+00:00", "updated_at": "2026-05-23 16:03:41.775033+00:00", "lang": "en", "topics": ["developer-tools", "open-source", "products"], "entities": ["Flutter", "SM CLI", "Riverpod", "Bloc", "GetX", "Provider", "GoRouter", "Dio"], "alternates": {"html": "https://wpnews.pro/news/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds", "markdown": "https://wpnews.pro/news/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds.md", "text": "https://wpnews.pro/news/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds.txt", "jsonld": "https://wpnews.pro/news/i-built-a-flutter-cli-that-generates-clean-architecture-in-seconds.jsonld"}}