title | description |
---|---|
run-many - CLI command |
Run target for multiple listed projects |
Run target for multiple listed projects
nx run-many
Install nx
globally to invoke the command directly using nx
, or use npx nx
, yarn nx
, or pnpx nx
.
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
Run the target on all projects in the workspace
This is the configuration to use when performing tasks on projects
Default: ``
Exclude certain projects from being processed
Show help
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
Max number of parallel processes [default is 3]
Projects to run (comma delimited)
Override the tasks runner in nx.json
Rerun the tasks even when the results are available in the cache
Task to run for affected projects
Print additional error stack trace on failure
Show version number
Deprecated: Configure target dependencies instead. It will be removed in v14.
Include dependencies of specified projects when computing what to run