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.

example/flo_cli_example.dart

import 'dart:io';

/// `flo_cli` is a command-line application designed to accelerate Flutter 
/// development by generating architecture components, managing dependencies, 
/// and setting up AI coding agent rules.
/// 
/// It is intended to be used directly from the command line, not as a library.
/// 
/// ### Installation
/// 
/// To install `flo_cli` globally, run:
/// 
/// ```sh
/// dart pub global activate flo_cli
/// ```
/// 
/// ### Usage
/// 
/// Once installed, you can use the `flo_cli` command in your terminal:
/// 
/// ```sh
/// # View the help menu
/// flo_cli --help
/// 
/// # Create a new Flutter project with the default architecture
/// flo_cli create my_awesome_app
/// 
/// # Add a specific component (e.g., a screen, bloc, or repository)
/// flo_cli add screen login
/// 
/// # Run the doctor command to verify your environment
/// flo_cli doctor
/// ```
/// 
/// The below code demonstrates how you might invoke `flo_cli` programmatically
/// from another Dart script if needed.
void main() async {
  print('--- flo_cli Example ---\n');
  print('flo_cli is a CLI tool. Running `flo_cli --help` programmatically...\n');

  try {
    // Invoke the CLI command
    final result = await Process.run('flo_cli', ['--help']);
    
    if (result.exitCode == 0) {
      print(result.stdout);
    } else {
      print('Command failed. Is flo_cli activated globally?');
      print('Error: ${result.stderr}');
    }
  } catch (e) {
    print('Could not start process: $e');
    print('Please ensure flo_cli is installed via `dart pub global activate flo_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