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.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 #
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.dev