Skip to main content
SolGuruz

SG CLI

The official SolGuruz Flutter Architecture Generator. Scaffold production-ready Flutter apps with BLoC pattern and clean architecture in seconds.

1.0.6
Version
10+
Commands
5
State Handlers
MIT
License
zsh — sg_cli
# Activate SG CLI from pub.dev
$ dart pub global activate sg_cli
# Init architecture in your Flutter project
$ sg init
Generating folder structure...
Setting up BLoC pattern...
Installing dependencies...
SG CLI initialized successfully!
# Generate a screen with BLoC
$ sg create screen login
screens/login/logic/login_bloc.dart
screens/login/view/login_screen.dart
Routes updated automatically

Everything you need to ship Flutter apps faster

SG CLI handles the boilerplate so you can focus on features.

🏗️
Max Architecture

Production-ready folder structure with BLoC pattern, clean architecture, and full route management out of the box.

Learn more
Code Generation

Instantly scaffold screens, bottom sheets, dialogs, sub-screens, and BLoC events with a single command.

Learn more
🔥
Firebase & Flavors

Automated product flavor setup (dev/stage/prod) with Firebase integration and deep linking per flavor.

Learn more
🧭
Type-Safe Navigation

Fully typed AppRouteConfig-based navigation via the Go class — no string routes, no casting.

Learn more
🗂️
State Pipeline

End-to-end data pipeline: API → Repository → Response → ViewState → Handler → Widget. Pagination built in.

Learn more
🎨
Design System

AppColors, AppTextStyles, AppThemes — dual light/dark mode with semantic color tokens and Inter typography.

Learn more

From zero to production-ready in minutes

Three commands. Complete architecture. No decisions to make.

01
Activate the CLI
dart pub global activate sg_cli

Install SG CLI globally via Dart pub. One-time setup, works across all your Flutter projects.

02
Initialize Max architecture
sg init

Copies the complete Max boilerplate — folder structure, BLoC, navigation, design system, and all dependencies — into your Flutter project.

03
Generate screens instantly
sg create screen product_detail

Each command creates the BLoC, event, state, screen view, route, and route registration — wired up and ready to use.

"Code is not good because it is complex. Code is good because anyone who understands the architecture can read it, change it, and extend it — confidently, quickly, and correctly."

Max architecture was built on one belief: complexity is not quality. The apps that stay healthy at scale are the ones built on a consistent, predictable system — not clever, one-off solutions.

Read The Max Standard →

Choose your architecture version

Configured via sg_cli.yaml in your project root.

Max

Full-featured production architecture. Includes all setup commands, code generation, and the complete Flutter scaffold.

All commands
See details
Bronze

Advanced routing and BLoC pattern. For teams that want clean architecture without the full setup ceremony.

create screen/sub_screen/bs/dialog/event
See details
Amber

Basic role-based structure. Lightweight scaffolding for simpler projects with essential BLoC generation.

create page/bs/event
See details

Install in 30 seconds

Activate globally via Dart's pub global.

Installation
# Activate SG CLI from pub.dev
$ dart pub global activate sg_cli
# Verify
$ sg help
SG CLI v1.0.6 — SolGuruz Flutter Architecture Generator
Full Installation Guide

Built by SolGuruz Private Limited

Engineering Quality Solutions by employing technologies with Passion and Love. Web and Mobile App Development Company in India and Canada.

Visit solguruz.comHire Flutter Devs