dig_cli 1.7.3-dev.1 copy "dig_cli: ^1.7.3-dev.1" to clipboard
dig_cli: ^1.7.3-dev.1 copied to clipboard

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

๐Ÿ› ๏ธ DIG CLI #

A powerful Flutter CLI tool to automate building, cleaning, packaging, and renaming your projects across all platforms. Designed with a premium Developer Dashboard to speed up your daily workflow.

pub package MIT License


๐Ÿš€ Features #

๐ŸŒŸ Categorized Developer Dashboard (v1.7.1) #

Run dg to instantly access the 15-item categorized master dashboard:

  1. ๐Ÿ“ฆ BUILD & RELEASE
    • ๐Ÿ—๏ธ Build APK
    • ๐Ÿ“ฆ Build App Bundle (AAB)
    • ๐ŸŽ Build iOS (IPA)
  2. ๐Ÿงน CLEAN & FIX
    • ๐Ÿงผ Fast Clean (flutter clean only)
    • โ˜ข๏ธ Clean & Full Reset (Pub get, Pods, optional Global Cache wipe)
  3. ๐Ÿ” SIGNING & KEYS
    • ๐Ÿ” Create JKS (Keystore with portable relative paths)
    • ๐Ÿ”‘ Generate SHA Keys (SHA1/SHA256)
    • ๐Ÿ”‘ Generate Hash Key (Base64 encoded for Facebook/Google Login)
  4. ๐Ÿ”ฅ CONFIGURATION
    • ๐Ÿ”ฅ Firebase Setup (Direct config reading, Login/Logout toggle)
    • โœจ Auto Setup Assets (pubspec.yaml auto-registration)
  5. ๐Ÿ—๏ธ PROJECT MANAGEMENT
    • ๐Ÿงฑ Create "Proper" Flutter Project (v1.5.0 Standard with secure defaults)
    • ๐Ÿ“‚ Create GetX Module (View, Controller, Binding, Route)
    • ๐Ÿท๏ธ Rename App / Bundle (All 6 Platforms!)
  6. ๐Ÿ“ฆ UTILITIES
    • ๐Ÿ—œ๏ธ Zip Source Code (Excludes ignored files)
    • ๐Ÿš€ Check for Updates (One-click update from pub.dev)

โœจ Auto Asset Generation (dg asset build / dg asset watch) #

Subfolder-based asset organization that auto-registers into your pubspec.yaml:

  • Folder structure determines class names: assets/bottom_bar/svg โ†’ BottomBarSvg
  • Smart cross-platform watcher prevents redundancy.
  • Single import: import 'package:app/generated/assets.dart'
  • See ASSET_GENERATION_GUIDE.md for detailed examples.

๐Ÿ“ฆ Installation #

dart pub global activate dig_cli

After installation, use dg as the command.


โš™๏ธ Usage #

dg

Direct Commands #

  • Create Project: dg create-project
  • Create Module: dg create-module auth (or dg create-module -n auth)
  • Rename App: dg rename --name "New Name" --bundle-id com.new.id
  • Build APK: dg create apk
  • Build AAB: dg create bundle
  • Clean Project: dg clean (use --global for Nuclear mode)
  • Create ZIP: dg zip
  • Generate Assets: dg asset build
  • Watch Assets: dg asset watch
  • Show Version: dg --version

๐Ÿงช Examples #

# Rename app and bundle identifier (All Platforms)
dg rename --name "Awesome App" --bundle-id com.my.awesome.app

# Build an APK with a custom name
dg create apk --name MyApp --output ~/Downloads

# Deep clean the project's build artifacts
dg clean --global

# Generate assets with subfolder-based classes
dg asset build
# Creates: BottomBarSvg, IconsSvg, FontsInterTtf, etc.

Asset Generation Example #

// Folder: assets/bottom_bar/svg/home.svg
import 'package:your_app/generated/assets.dart';
import 'package:flutter_svg/flutter_svg.dart';

SvgPicture.asset(BottomBarSvg.home);

// Folder: assets/fonts/inter/bold.ttf
Text('Hello', style: TextStyle(fontFamily: FontsInterTtf.bold));

๐Ÿ–ฅ๏ธ Platform-specific Setup (Alias) #

By default, use dg in your terminal. If you prefer a custom command name (alias), you can set it up easily:

macOS & Linux #

# Add this to ~/.zshrc or ~/.bashrc
alias df="dg"

Windows (PowerShell) #

Set-Alias df dg

๐Ÿ“ License #

Licensed under the MIT License.

Made with โค๏ธ by Digvijaysinh Chauhan

  • Check out my Flutter packages on pub.dev
8
likes
0
points
311
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

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

More

Packages that depend on dig_cli