flutter_storage_cleaner 0.0.2 copy "flutter_storage_cleaner: ^0.0.2" to clipboard
flutter_storage_cleaner: ^0.0.2 copied to clipboard

A CLI tool to clean multiple Flutter project folders.

flutter_storage_cleaner

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 clean on 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:

  1. Scan the current directory and all subdirectories for pubspec.lock files.
  2. Identify Flutter projects.
  3. Execute flutter clean in each project found.
  4. 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.

0
likes
145
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to clean multiple Flutter project folders.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on flutter_storage_cleaner