glopr_cli 1.0.2 copy "glopr_cli: ^1.0.2" to clipboard
glopr_cli: ^1.0.2 copied to clipboard

A CLI to generate Flutter starter project from template. Built by Glopr Team <3

๐Ÿ•ต๏ธ Holmes CLI #

A command-line tool to scaffold Flutter apps using a custom template.

๐Ÿš€ Features #

  • Create a new Flutter project from your own template
  • Automatically replace placeholders like project name, bundle ID, description, etc.
  • Text and binary file support
  • Check development environment with doctor command
  • Simple and extendable CLI

๐Ÿ›  Installation #

Clone this repo and activate locally:

git clone https://github.com/your-org/glopr_cli.git
cd glopr_cli
dart pub global activate --source path .

๐Ÿ“ฆ Usage #

๐Ÿ“ Create a New Project #

Create a new Flutter project from your local template:

glopr create <project-name> [-o com.example.app]

Example:

glopr create my_app -o com.mycompany.myapp

You will be prompted to enter:

๐Ÿ“ App display name: My App
๐Ÿ“ App description: A beautiful Flutter app built with Holmes CLI.

Then the CLI will:

  • Copy the template from the local template/ directory
  • Replace placeholders in file names and content:
    • __project_name__ โ†’ my_app
    • __app_name__ โ†’ My App
    • __description__ โ†’ A beautiful Flutter app built with Holmes CLI.
    • __bundle_id__ โ†’ com.mycompany.myapp
  • Print status for each copied file:
    ๐Ÿš€ Generating project "my_app"...
    ๐Ÿ“„ Copied text:  pubspec.yaml
    ๐Ÿ“„ Copied text:  lib/main.dart
    ๐Ÿ–ผ๏ธ  Copied binary: assets/icon.png
    โœ… Project generated successfully!
    

๐Ÿฉบ Run Doctor #

Check your environment for Flutter and Dart:

glopr doctor

Output:

๐Ÿ” Running doctor...
Flutter:
Flutter 3.32.7 โ€ข channel stable โ€ข https://flutter.dev
Dart:
Dart SDK version: 3.8.1 (stable)
โœ… Environment check complete.

๐Ÿ”Ž Show Version #

Check the current CLI version:

glopr --version

Output:

glopr_cli version 1.0.0

๐Ÿ†˜ Show Help #

Display available commands and options:

glopr --help

Output:

Holmes CLI
Create a Flutter project from your custom template

Usage:
  glopr create <project_name> [-o com.example.app]
  glopr -v | --version
  glopr -h | --help
  glopr doctor

Options:
  -o, --org       Set the bundleId (e.g., com.example.app)
  -v, --version   Show CLI version
  -h, --help      Show this help message

Commands:
  create          Generate a new Flutter project based on template
  doctor          Check system requirements

๐Ÿงช Example Template Structure #

template/
โ”œโ”€โ”€ main.dart                        # Entry point of the app
โ”œโ”€โ”€ injection_container.dart         # Dependency injection setup (e.g., GetIt)
โ”œโ”€โ”€ core/                            # Core-level utilities and services
โ”‚   โ”œโ”€โ”€ constants/                   # App-wide constant values
โ”‚   โ”œโ”€โ”€ env/                         # Environment-specific configuration
โ”‚   โ”œโ”€โ”€ error/                       # Error handling and exceptions
โ”‚   โ”œโ”€โ”€ extensions/                  # Dart extensions (e.g., StringX)
โ”‚   โ”œโ”€โ”€ impl/                        # Concrete implementations of services
โ”‚   โ”œโ”€โ”€ services/                    # Abstract service definitions
โ”‚   โ”œโ”€โ”€ themes/                      # App themes and color schemes
โ”‚   โ””โ”€โ”€ utils/                       # Generic utility functions
โ”œโ”€โ”€ core_bloc/                       # Global BLoC (e.g., theme switching)
โ”‚   โ””โ”€โ”€ theme/                       # Theme-related BLoC logic
โ”œโ”€โ”€ data/                            # Data layer of Clean Architecture
โ”‚   โ”œโ”€โ”€ data_sources/                # Remote/local data fetching logic
โ”‚   โ”œโ”€โ”€ models/                      # Data models and DTOs
โ”‚   โ””โ”€โ”€ repositories/                # Data access abstraction
โ”œโ”€โ”€ dialogs/                         # Global/custom dialogs
โ”‚   โ””โ”€โ”€ alert_dialog/               # Custom alert dialog implementation
โ”œโ”€โ”€ domain/                          # Domain layer: business logic
โ”‚   โ”œโ”€โ”€ entities/                    # Core business entities
โ”‚   โ””โ”€โ”€ usecases/                    # Application-specific use cases
โ”œโ”€โ”€ presentation/                    # UI and BLoC logic
โ”‚   โ”œโ”€โ”€ bloc/                        # Presentation-specific BLoC
โ”‚   โ””โ”€โ”€ pages/                       # Screens and pages
โ”œโ”€โ”€ root/                            # App configuration and entry points
โ”‚   โ”œโ”€โ”€ app/                         # App widget and app-level config
โ”‚   โ”œโ”€โ”€ bootstrap.dart               # Bootstrapping the app
โ”‚   โ”œโ”€โ”€ l10n/                        # Localization support
โ”‚   โ”œโ”€โ”€ main_development.dart        # Entry point for development build
โ”‚   โ””โ”€โ”€ main_production.dart         # Entry point for production build
โ”œโ”€โ”€ widgets/                         # Reusable UI components
โ”‚   โ”œโ”€โ”€ app_safe_area.dart           # Wrapper for safe UI rendering
โ”‚   โ””โ”€โ”€ app_text.dart                # Custom text widget


โœ… License #

MIT โ€” feel free to use, modify, and distribute.


๐Ÿ‘จโ€๐Ÿ’ป Author #

Made with โค๏ธ by Holmes


๐Ÿ‘จโ€๐Ÿ’ป Portfolio #

Holmes

1
likes
130
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI to generate Flutter starter project from template. Built by Glopr Team <3

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

ansi_styles, args, io, path, yaml

More

Packages that depend on glopr_cli