pnpm recursive run <Scripts...>

Runs a script defined in the package's manifest file

Arguments

NameDescription
Scripts

Options

NameDescription
-r, --recursiveThis runs an arbitrary command from each package's "scripts" object. If a package doesn't have the command, it is skipped. If none of the packages have the command, the command fails
--if-presentYou can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain
--parallelCompletely disregard concurrency and topological sorting, running a given script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes over many packages, for instance, a lengthy build process
--streamStream output from child processes immediately, prefixed with the originating package directory. This allows output from different packages to be interleaved
--filter <Filepath / Package>Filtering allows you to restrict commands to specific subsets of packages. pnpm supports a rich selector syntax for picking packages by name or by relation. More details: https://pnpm.io/filtering