dig_cli 1.5.8
dig_cli: ^1.5.8 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.
๐ Features #
- Interactive Menu: Easy navigation; run the tool without commands for a guided experience.
- โจ Create Project: Bootstrap a "Proper" Flutter Project (v1.5.0 Standard) with:
- Dynamic App Name: Auto-injects your app name into
AppConstantandAndroidManifest. - Download Manager: Pre-configured
GetxServicefor robust background downloads & localization. - JKS Automation: Auto-generates unique keystores and configures signing.
- Secure Defaults: Generates cryptographically secure API keys in
.env.
- Dynamic App Name: Auto-injects your app name into
- ๐ท๏ธ Rename App: Smart renaming for Android, iOS, macOS, Windows, Linux, and Web.
- Handles Android namespace updates and directory restructuring.
- Updates bundle IDs and display names across all platform-specific files.
- ๐๏ธ Create Module: Automated GetX scaffolding (
View,Controller,Binding,Export) with auto-route registration. - ๐จ Asset Generation: Auto-generate type-safe asset constants from your assets directory.
dg asset build- Generate oncedg asset watch- Auto-regenerate on changes- Simple
dig.yamlconfiguration (likel10n.yaml) - Separate classes for SVG icons, PNG/JPG images
- ๐ก๏ธ Build Tools: Release builds with automatic
ProjectName-YYYY-MM-DDnaming. - Deep Clean: Removes Flutter, Gradle, Xcode, and Pods caches on macOS, Windows, and Linux.
- Auto Update Check: Checks for new versions on pub.dev (Latest: v1.5.8).
๐ฆ Installation #
dart pub global activate dig_cli
After installation, use dg as the command.
โ๏ธ Usage #
Interactive Menu (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 - 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
๐ฅ๏ธ 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