run-many

Run target for multiple listed projects

Usage

nx run-many

Install nx globally to invoke the command directly using nx, or use npx nx, yarn nx, or pnpx nx.

Examples

Test all projects:

nx run-many --target=test --all

Test proj1 and proj2:

nx run-many --target=test --projects=proj1,proj2

Test proj1 and proj2 in parallel:

nx run-many --target=test --projects=proj1,proj2 --parallel=2

Options

all

Run the target on all projects in the workspace

configuration

This is the configuration to use when performing tasks on projects

exclude

Default: ``

Exclude certain projects from being processed

help

Show help

only-failed

Default: false

Deprecated: The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Only run the target on projects which previously failed

parallel

Max number of parallel processes [default is 3]

projects

Projects to run (comma delimited)

runner

Override the tasks runner in nx.json

skip-nx-cache

Default: false

Rerun the tasks even when the results are available in the cache

target

Task to run for affected projects

verbose

Print additional error stack trace on failure

version

Show version number

with-deps

Default: false

Deprecated: Configure target dependencies instead. It will be removed in v14.

Include dependencies of specified projects when computing what to run