blue_bird_cli 1.0.0 copy "blue_bird_cli: ^1.0.0" to clipboard
blue_bird_cli: ^1.0.0 copied to clipboard

A powerful CLI tool to kickstart your Flutter projects with clean, scalable architectures that grow with your app.

Blue Bird CLI 🐦 #

style: very good analysis License: MIT

Build scalable Flutter apps with confidence.

Blue Bird CLI generates production-ready Flutter projects with clean architecture, workspace management, and automated dependency injection. Choose from lite templates for small apps or complex multi-package architectures for enterprise-scale applications.

Blue Bird CLI

Inspired by Very Good CLI πŸ€–


Installation πŸš€ #

dart pub global activate blue_bird_cli

Quick Start #

# Create a lite app (small to medium projects)
blue_bird create lite_app -t flutter_lite

# Create a full-scale app (complex, enterprise projects)
blue_bird create full_app

# Add a feature package to an existing project
blue_bird create my_feature -t flutter_package -o "full_app/packages"

Templates #

πŸͺΆ Flutter Lite #

Perfect for small to medium-sized projects

A streamlined single-app structure with clean architecture, ideal for apps that need organization without the complexity of multi-package workspaces.

blue_bird create lite_app -t flutter_lite --org com.mycompany

Structure:

lite_app/
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ main.dart
β”‚   └── src/
β”‚       β”œβ”€β”€ config/         # DI, routes, l10n, theming
β”‚       β”œβ”€β”€ data/           # Repositories, data sources, models
β”‚       β”œβ”€β”€ domain/         # Entities, use cases, repository interfaces
β”‚       └── presentation/   # Pages, widgets, view models
β”œβ”€β”€ assets/
└── test/

πŸ—οΈ Flutter Project #

Built for complex, scalable applications

A comprehensive multi-package architecture with clean architecture patterns, perfect for large teams and enterprise apps.

blue_bird create full_app

Structure:

full_app/
β”œβ”€β”€ core/              # Foundation layer
β”œβ”€β”€ design_system/     # UI system
β”œβ”€β”€ packages/          # Feature packages
β”‚   └── bb_example_package/
β”‚   └── ...
└── lib/               # Main app

πŸ“¦ Flutter Package #

Modular feature development

Generate feature packages with clean architecture (data, domain, presentation layers) that automatically integrate with your workspace.

cd full_app/packages
blue_bird create my_feature -t flutter_package

Auto-configured:

  • βœ… Added to workspace
  • βœ… Added to dependencies
  • βœ… DI configuration injected

Architecture & Dependencies #

Blue Bird enforces a clear dependency hierarchy to maintain scalability:

graph TD
    A[Main App] --> B[design_system]
    A --> C[core]
    A --> D[packages/*]
    B --> C
    D --> B
    D --> C
    
    style A fill:#4CAF50
    style B fill:#2196F3
    style C fill:#FF9800
    style D fill:#9C27B0

Dependency Rules:

  • Main App β†’ Can use all packages
  • design_system β†’ Can use core only
  • core β†’ No internal dependencies (foundation layer)
  • packages/ β†’ Can use core and design_system
  • packages/ β†’ ❌ Cannot depend on each other (no cyclic dependencies)

This ensures maintainability and prevents circular dependencies as your app grows.


Package Structure #

Feature packages follow clean architecture with three distinct layers:

Domain Layer (Business Logic)

  • Entities, repositories interfaces, use cases

Data Layer (Implementation)

  • Repository implementations, data sources, models

Presentation Layer (UI)

  • Pages, widgets, state management (Cubit/BLoC)

Example: bb_example_package

bb_example_package/
β”œβ”€β”€ lib/src/
β”‚   β”œβ”€β”€ domain/
β”‚   β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ presentation/
β”‚   └── config/di/

Commands #

Create Projects & Packages #

# Lite template
blue_bird create lite_app -t flutter_lite

# Full project (default)
blue_bird create full_app

# Feature package
blue_bird create my_package -t flutter_package

# With custom organization
blue_bird create my_app --org com.example.myapp

# All platforms are added by default, remove them like this
blue_bird create my_app -t flutter_lite --android false --ios false

Update CLI #

blue_bird update

Help #

blue_bird --help
blue_bird create --help

Features #

✨ Workspace Management - Automatic workspace configuration
πŸ”§ Auto DI Integration - Dependencies injected automatically
πŸ“ Clean Architecture - Domain, data, presentation layers
🎨 Design System - Centralized theming and components
πŸ§ͺ Test Ready - Pre-configured testing structure
πŸ“¦ Modular - Feature-based package organization
πŸ”„ Melos Compatible - Multi-package development ready


License #

MIT


11
likes
150
points
42
downloads

Documentation

API reference

Publisher

verified publishernetwriper.com

Weekly Downloads

A powerful CLI tool to kickstart your Flutter projects with clean, scalable architectures that grow with your app.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, cli_completion, glob, lcov_parser, mason, mason_logger, meta, path, pub_updater, pubspec_parse, stack_trace, universal_io, very_good_test_runner

More

Packages that depend on blue_bird_cli