dig_cli 1.7.3
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.
π Features #
π Categorized Developer Dashboard (v1.7.1) #
Run dg to instantly access the 15-item categorized master dashboard:
- π¦ BUILD & RELEASE
- ποΈ Build APK
- π¦ Build App Bundle (AAB)
- π Build iOS (IPA)
- π§Ή CLEAN & FIX
- π§Ό Fast Clean (flutter clean only)
- β’οΈ Clean & Full Reset (Pub get, Pods, optional Global Cache wipe)
- π SIGNING & KEYS
- π Create JKS (Keystore with portable relative paths)
- π Generate SHA Keys (SHA1/SHA256)
- π Generate Hash Key (Base64 encoded for Facebook/Google Login)
- π₯ CONFIGURATION
- π₯ Firebase Setup (Direct config reading, Login/Logout toggle)
- β¨ Auto Setup Assets (
pubspec.yamlauto-registration)
- ποΈ 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!)
- π¦ 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 #
Interactive Menu (Highly Recommended) #
dg
Direct Commands #
- Create Project:
dg create-project - Create Module:
dg create-module auth(ordg 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--globalfor 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.flutter-io.cn