dig_cli 0.0.1 copy "dig_cli: ^0.0.1" to clipboard
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.

pub package
MIT License


๐Ÿš€ 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.



๐Ÿค Contributing #

  1. Fork this repo
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'feat: add something')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

๐Ÿ“ License #

Licensed under the MIT License.


Made with โค๏ธ by Digvijaysinh Chauhan

4
likes
0
points
285
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter CLI tool for building APKs, AABs, and cleaning Flutter projects with date-time naming and advanced automation options.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, args, flutter, path, yaml

More

Packages that depend on dig_cli