🌊 pfall
pfall is a simple Dart CLI tool that runs dart pub get --no-example in all subdirectories that contain a pubspec.yaml.
It can also clean build artifacts (pubspec.lock, .dart_tool/, build/) across all packages in your workspace.
It saves you from having to run the commands manually in every package of a monorepo.
🔧 Installation
Activate globally from pub.dev:
dart pub global activate pfall
🚀 Usage
Run pfall inside the root of your monorepo/workspace.
Show help
pfall help
Run dart pub get --no-example in all subdirectories
pfall get
Force re-fetch Git dependencies
pfall get --force
# or
pfall get -f
Clean .dart_tool, build, and pubspec.lock in all subdirectories
pfall clean
✨ Example
# Get all dependencies
pfall get
# Clean all packages
pfall clean
# Show usage information
pfall help