dig_cli 1.2.7
dig_cli: ^1.2.7 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.
- π·οΈ 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.
- Build APK/AAB: Release builds with automatic
ProjectName-YYYY-MM-DD-HH-MMnaming. - Deep Clean: Removes Flutter, Gradle, Xcode, and Pods caches on macOS, Windows, and Linux.
- Create Clean ZIP: Packages your project into a ZIP file, excluding files from
.gitignore. - Auto Update Check: Checks for new versions on pub.flutter-io.cn and provides an update option.
π¦ Installation #
dart pub global activate dig_cli
After installation, use dg as the command.
βοΈ Usage #
Interactive Menu (Recommended) #
dg
Direct Commands #
- 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 - 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