fbloc_cli 1.0.3 copy "fbloc_cli: ^1.0.3" to clipboard
fbloc_cli: ^1.0.3 copied to clipboard

A scaffolding CLI for Flutter projects with feature-first architecture and BLoC/Cubit state management.

fbloc CLI #

A scaffolding CLI for Flutter projects with feature-first architecture and BLoC/Cubit state management.

Installation #

From pub.dev:

dart pub global activate fbloc_cli

From source (local path):

dart pub get
dart pub global activate --source path .

Ensure your pub cache bin is on PATH so fbloc is available.

Usage #

Create a new project #

fbloc create project my_app

This will:

  • Prompt for configuration (Network, State Management, Navigation, Equatable)
  • Create Flutter project structure
  • Generate default home feature and view
  • Save preferences in .cli_config.json

Create a new feature #

fbloc create feature auth

or

fbloc feature auth

Create a new view #

fbloc view login on auth

Configuration #

On first project creation, you'll be prompted to configure:

  • Network package: http (default) or dio
  • State management: bloc (default) or cubit
  • Navigation: go_router (default) or navigator
  • Equatable: yes (default) or no

Configuration is saved in .cli_config.json and used for all subsequent feature/view generation.

Generated Structure #

lib/
└── app/
├── features/
│ └── home/
│ ├── bloc/ or cubit/
│ ├── repository/
│ ├── model/
│ └── view/
├── core/
│ ├── theme/
│ ├── utils/
│ └── service/
└── routes/
1
likes
160
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A scaffolding CLI for Flutter projects with feature-first architecture and BLoC/Cubit state management.

Repository (GitHub)
View/report issues

Topics

#cli #scaffolding #bloc #flutter #generator

License

MIT (license)

Dependencies

args, io, path

More

Packages that depend on fbloc_cli