dig_cli 1.7.3 copy "dig_cli: ^1.7.3" to clipboard
dig_cli: ^1.7.3 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.flutter-io.cn)

✨ 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

10
likes
0
points
268
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