dig_cli 1.1.6
dig_cli: ^1.1.6 copied to clipboard
A powerful command-line tool to automate building, cleaning, and packaging Flutter projects.
dig_cli Example #
This directory contains examples of how to use the dig_cli tool.
Installation #
First, install the dig_cli tool globally:
flutter pub global activate dig_cli
Usage Examples #
1. Clean a Flutter Project #
Navigate to any Flutter project and run:
dig clean
This will:
- Clean Flutter cache and build files
- Clean iOS workspace, Pods, and DerivedData
- Clean Android Gradle and build directories
- Reinstall dependencies
2. Build APK #
In a Flutter project:
dig create build
This will:
- Build a release APK
- Name it with project name and timestamp
- Move it to your Desktop
3. Build App Bundle (AAB) #
In a Flutter project:
dig create bundle
This will:
- Build a release AAB
- Name it with project name and timestamp
- Move it to your Desktop
Example Output #
๐ Current date: Thursday, July 17, 2025, 10:43 AM IST
๐ Flutter iOS + Android Project Cleaner
โฐ Started at 17-07-2025 10:43 AM IST
๐ Current Directory: /path/to/your/project
๐ฆ Pre-caching Flutter iOS artifacts...
๐งน Cleaning Flutter...
๐ฆ Getting Dart packages...
๐งผ iOS: Cleaning workspace, Pods, build, symlinks...
๐ฅ Installing CocoaPods...
๐งผ Android: Removing build and cache directories...
โ
All Clean! Flutter, iOS & Android project reset complete.
File Naming Convention #
Builds are automatically named with the following format:
- APK:
{project_name}-{dd-mm-yyyy}-{hh.mmAM}.apk - AAB:
{project_name}-{dd-mm-yyyy}-{hh.mmAM}.aab
Example: myapp-17-07-2025-10.43AM.apk