dig_cli 0.0.1
dig_cli: ^0.0.1 copied to clipboard
A Flutter CLI tool for building APKs, AABs, and cleaning Flutter projects with date-time naming and advanced automation options.
๐ ๏ธ dig_cli #
A powerful Flutter CLI tool for building APKs and AABs with automatic timestamped filenames, cleaning build artifacts, and organizing output โ all from your terminal.
๐ Features #
- ๐ฆ Build APK: Generate release APKs with datetime-stamped filenames
- ๐ฏ Build AAB: Generate Android App Bundles (.aab) with timestamps
- ๐งน Clean Projects: Deep clean Flutter, iOS, and Android build files
- ๐ฅ๏ธ Auto-Export to Desktop: Outputs are automatically moved to your Desktop
- โฑ Timestamp Naming: Output files are named using the current date and time
- ๐ Cross-Platform: Works on macOS, Windows, and Linux
๐ฆ Installation #
โ From pub.dev #
flutter pub global activate dig_cli
๐ From GitHub (local source) #
git clone https://github.com/Digvijaysinh2204/dig_cli.git
cd dig_cli
flutter pub global activate --source path .
Install globally via Git:
dart pub global activate --source git https://github.com/Digvijaysinh2204/dig_cli.git
โ๏ธ Usage #
Build APK #
dig create build
Output (Desktop): yourproject-25-12-2025-02.30PM.apk
Build AAB #
dig create bundle
Output (Desktop): yourproject-25-12-2025-02.30PM.aab
Clean Project #
dig clean
Or:
dig clear build
This cleans:
- Flutter build and cache
- Android
.gradle,.cxx, build folders - iOS workspace, Pods, build folder, and DerivedData (macOS only)
๐งช Examples #
dig create build --name MyApp
# Builds MyApp-DD-MM-YYYY-HH.MMAM.apk to Desktop
dig create bundle -o ./output
# Builds AAB to ./output folder
dig clean
# Fully cleans Android and iOS artifacts
๐ Output File Naming #
All output files follow the pattern:
- APK:
{project_or_custom_name}-{dd-mm-yyyy}-{hh.mmAM}.apk - AAB:
{project_or_custom_name}-{dd-mm-yyyy}-{hh.mmAM}.aab
These are automatically moved to your Desktop (or a specified output directory).
โ๏ธ Options #
| Option | Alias | Description |
|---|---|---|
--help |
-h |
Show help |
--version |
-v |
Show version information |
--output <dir> |
-o |
Specify output directory (default: Desktop) |
--name <prefix> |
-n |
Use custom prefix instead of project name for the output |
๐งฌ Requirements #
- Flutter SDK โฅ 3.0.0
- Dart SDK โฅ 2.19.0
- Android SDK (for APK/AAB)
- Xcode & CocoaPods (for iOS cleanup on macOS)
๐ง Setup Alias (Optional) #
To shorten the command, you can create a terminal alias:
# Add this to ~/.zshrc or ~/.bashrc
alias dig="dig_cli"
Then restart your terminal or run source ~/.zshrc.
๐ Links #
๐ค Contributing #
- Fork this repo
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'feat: add something') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
๐ License #
Licensed under the MIT License.
Made with โค๏ธ by Digvijaysinh Chauhan