flutter_storage_cleaner 0.0.2
flutter_storage_cleaner: ^0.0.2 copied to clipboard
A CLI tool to clean multiple Flutter project folders.

Flutter Storage Cleaner #
A powerful CLI tool to recursively scan directories and clean multiple Flutter projects at once. Reclaim disk space by removing build artifacts from all your Flutter projects in a single command.
๐ Features #
- Recursive Scanning: Automatically finds all Flutter projects in subdirectories.
- Bulk Cleaning: Runs
flutter cleanon every detected project. - Detailed Summary: Provides a report of successful and failed cleaning operations.
- Space Saver: Frees up significant storage space occupied by
build/and.dart_tool/directories.
๐ฆ Installation #
Install the package globally using Dart:
dart pub global activate flutter_storage_cleaner
๐ Usage #
Clean All Projects #
Navigate to your workspace folder (or any folder containing Flutter projects) and run:
flutter_storage_cleaner clean
This command will:
- Scan the current directory and all subdirectories for
pubspec.lockfiles. - Identify Flutter projects.
- Execute
flutter cleanin each project found. - Display a progress report and final summary.
Help Command #
To see available commands:
flutter_storage_cleaner help
๐ Example Output #
๐ Searching for Flutter projects from: /Users/username/Workspace
๐ Found 3 Flutter project(s)
๐งน Cleaning: /Users/username/Workspace/project_a
โ Cleaned successfully!
๐งน Cleaning: /Users/username/Workspace/project_b
โ Cleaned successfully!
๐งน Cleaning: /Users/username/Workspace/project_c
โ Cleaned successfully!
===============================
โจ Summary
-------------------------------
Total Projects: 3
Successfully Cleaned: 3
Failed: 0
===============================
๐ค Contributing #
Contributions are welcome! If you have ideas for new features (like parallel cleaning, ignore patterns, or dry-run mode), feel free to open an issue or submit a pull request.
๐ License #
This project is licensed under the MIT License.