dig_cli 1.8.1 copy "dig_cli: ^1.8.1" to clipboard
dig_cli: ^1.8.1 copied to clipboard

A powerful command-line tool to automate building, cleaning, and packaging Flutter projects.

dig_cli #

pub package Dart License: MIT Monorepo

A powerful developer CLI and automation companion for Flutter projects. Automates asset path indexing, code generation, keystore creation, build pipelines, and project scaffolding.


โšก Features #

  • ๐ŸŽจ Asset Generation: Automatically discovers and indexes images, SVGs, and fonts into type-safe Dart classes.
  • ๐Ÿ“ฑ Build Automation: Fast shortcuts for compiling release APKs, Android App Bundles (AAB), and iOS IPAs.
  • ๐Ÿ” Keystore & Security: Interactive JKS keystore generator and SHA1/SHA256 fingerprint extraction.
  • ๐Ÿงน Deep Clean: Safely clears CocoaPods, Gradle, Xcode build artifacts, and repairs the Pub cache.
  • ๐Ÿ–ฅ๏ธ Interactive Terminal Dashboard: Launch dg with no arguments for a visual terminal menu.

๐Ÿ“ฆ Installation #

Activate dig_cli globally using Dart:

dart pub global activate dig_cli

Verify that the CLI executable dg is available in your system PATH:

dg --version

๐Ÿ–ฅ๏ธ Interactive Dashboard #

Simply run dg in any Flutter project root to open the interactive menu:

dg
โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                          DIG CLI                                 โ•‘
โ•‘            Flutter Developer Automation Engine                   โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

[1] ๐Ÿš€ Build & Release (APK, AAB, iOS)
[2] ๐Ÿงน Clean & Repair (Pods, Gradle, Cache)
[3] ๐Ÿ”‘ Signing & Keys (JKS, SHA1/SHA256)
[4] ๐ŸŽจ Asset Indexer (Type-Safe Assets)
[5] ๐Ÿ“ฆ Project Scaffolding
[0] ๐Ÿšช Exit

๐Ÿ› ๏ธ CLI Command Reference #

Command Description
dg Launches the interactive dashboard
dg create apk Compiles a release APK with optional output directory
dg create bundle Compiles an Android App Bundle (AAB) for Google Play
dg ios Runs the iOS build pipeline
dg asset build Generates type-safe asset references from assets directory
dg asset watch Watches assets directory and updates references in real time
dg create-jks Generates and configures a release keystore
dg sha-keys Displays SHA-1 and SHA-256 fingerprints
dg clean Cleans Flutter build artifacts, CocoaPods, and Gradle cache
dg pub-cache Performs a deep repair on the pub cache

๐Ÿ“ Asset Indexing Example #

Define your asset paths in pubspec.yaml or dig.yaml, then run:

dg asset build

This generates type-safe constants in lib/generated/assets.dart:

// Auto-generated by DIG CLI
class AppAssets {
  AppAssets._();

  static const String logo = 'assets/images/logo.png';
  static const String banner = 'assets/images/banner.png';
}

๐Ÿค Part of DHC Tech Packages Monorepo #

dig_cli is maintained under the dhc-tech/flutter-packages monorepo.

Contributions, issues, and feature requests are welcome at the GitHub Issues page.


๐Ÿ‘ค Author #

Maintained by DHC Tech.


๐Ÿ“„ License #

This project is open-source and licensed under the MIT License.

10
likes
160
points
304
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A powerful command-line tool to automate building, cleaning, and packaging Flutter projects.

Repository (GitHub)
View/report issues
Contributing

Topics

#cli #developer-tools #flutter-tools #code-generator

License

MIT (license)

Dependencies

ansicolor, archive, args, http, path, pub_semver, watcher, yaml

More

Packages that depend on dig_cli