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.flutter-io.cn #

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

10
likes
0
points
268
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