Skip to content
pubscout

puby

1.39.2, released 7 weeks ago by rexios.dev

Run Dart and Flutter commands across multiple projects in the current directory.

$ flutter pub add puby
Source repository

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 get

Alternatives

Packages that do the same job and could replace puby.

  • git

    Git command line wrapper for inspecting and manipulating local Git repositories.

  • dart_spawner

    Runs Dart scripts, files, or URIs inside a new Isolate of the current Dart VM.

  • script_runner

    Runs configurable project scripts from a YAML/JSON file via a CLI tool.

  • flavor_getter

    Plugin to read current app flavor from native code

Works with

Packages commonly used together with puby: ones it builds on, ones built on it, and its own family.