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

A production-grade Flutter developer CLI toolkit for generating architecture components, managing dependencies, and setting up AI coding agent rules.

Flo CLI #

A production-grade Flutter developer CLI toolkit designed to streamline your Flutter development workflow. Flo CLI automates project creation, component generation, dependency management, and AI agent configuration.

Features #

  • Project Initialization: Create new Flutter projects with a predefined structure and organization.
  • Component Generation: Easily generate Blocs, Entities, Models, Repositories, Screens, and entire Feature modules.
  • Dependency Management: Add or remove packages interactively or via command line.
  • AI Agent Integration: Automatically generate AI coding instructions for supported agents based on your project's architecture and state management.
  • Health Checks: Diagnose your CLI and project environment.

Usage #

flo_cli <command> [arguments]

Global Options #

  • -h, --help: Print usage information.
  • -v, --verbose: Enable verbose logging.
  • -q, --quiet: Disable all logging except errors.
  • --json: Output results in JSON format.

Available Commands #

create

Creates a new Flutter project.

flo_cli create [arguments] <project_name>

Options:

  • -o, --org: The organization for the new project (e.g., com.example).
  • -c, --config: Path to a project.yaml configuration file for advanced setup.

add

Adds a new component or package to the project.

flo_cli add <subcommand> [arguments]

Subcommands:

  • bloc: Generates a new Bloc (Bloc, Event, State).
  • entity: Generates a new domain entity.
  • feature: Generates a new feature module structure.
  • model: Generates a new data model.
  • package: Adds a package dependency to pubspec.yaml.
  • repository: Generates a repository interface and implementation.
  • screen: Generates a new UI screen widget.

remove

Removes a package from the project.

flo_cli remove [arguments] <package_name>

Options:

  • -d, --dev: Remove a dev dependency.

configure

Configures project dependencies interactively.

flo_cli configure

agents

Manage AI agent configurations.

flo_cli agents <subcommand>

Subcommands:

  • setup: Generates AI coding instructions (e.g., in .prompts or .agents/rules.md) automatically for supported agents, tailored to your project's state management and architectural patterns.

doctor

Checks the health of the CLI toolkit and environment.

flo_cli doctor

Example Workflow #

  1. Create a new project:

    flo_cli create my_app --org com.mycompany
    
  2. Navigate to the project:

    cd my_app
    
  3. Generate a new feature:

    flo_cli add feature authentication
    
  4. Add a state management Bloc:

    flo_cli add bloc login
    
  5. Setup AI coding agents:

    flo_cli agents setup
    

    (This analyzes your project setup and creates dynamic agent rules to ensure AI-generated code follows your project's specific conventions.)

Contributing #

Feel free to open issues or submit pull requests to improve the CLI.

2
likes
160
points
75
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A production-grade Flutter developer CLI toolkit for generating architecture components, managing dependencies, and setting up AI coding agent rules.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

args, cli_completion, get_it, mason_logger, path, yaml

More

Packages that depend on flo_cli