puby
1.39.2, released 7 weeks ago by rexios.dev
Run Dart and Flutter commands across multiple projects in the current directory.
What it does
Puby is a CLI tool that automates executing commands like pub get, test, clean, and custom scripts across multiple projects or monorepos simultaneously. It automatically detects project engines such as Dart, Flutter, or FVM, and provides performance shortcuts like cached offline linking.
AI-written summary of version 1.39.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are working with monorepos containing multiple Dart or Flutter projects.
- You want to run common commands like pub get or test across all projects at once.
- You need a faster way to warm the pub cache and run offline dependency updates.
Skip it when
- You are working on a single isolated project without sub-projects.
- You require complex release orchestration or publishing workflows provided by other monorepo tools.
Strengths
- Automatically detects project engines (dart, flutter, fvm).
- Significantly faster dependency linking with `puby link`.
- Supports project-level command exclusions and combined exit codes for CI.
Weaknesses
- Relies on directory structure and convention for project discovery.
- Relative paths passed to `puby exec` require full paths ($PWD) to work correctly.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 9
Install globally via dart pub global activate puby and optionally add puby.yaml for command exclusions.
dart pub global activate puby
puby getAlternatives
Packages that do the same job and could replace puby.
- git
Git command line wrapper for inspecting and manipulating local Git repositories.
89Compare - dart_spawner
Runs Dart scripts, files, or URIs inside a new Isolate of the current Dart VM.
68Compare - script_runner
Runs configurable project scripts from a YAML/JSON file via a CLI tool.
43Compare - flavor_getter
Plugin to read current app flavor from native code
42Compare
Works with
Packages commonly used together with puby: ones it builds on, ones built on it, and its own family.
- yamlpuby depends on itA Dart library for parsing YAML documents into Dart data structures.
- pub_semverpuby depends on itVersions and version constraints implementing pub's versioning policy.
- iopuby depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- pubspec_parsepuby depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.