nx/docs/react/cli/run.md
2020-03-25 17:22:17 -04:00

891 B

run

Runs an Architect target with an optional custom builder configuration defined in your project.

Usage

nx run <target> [options]

Install @nrwl/cli globally to invoke the command directly using nx, or use npm run nx or yarn nx.

When used within an Nx workspace with the Angular CLI as the primary CLI, the Nx CLI delegates the run command to the Angular CLI's run command.

Examples

Run the build target for the myapp :

nx run myapp:build

Run the build target for the myapp project with a production configuration:

nx run myapp:build:production

Options

configuration (-c)

A named builder configuration, defined in the "configurations" section of the workspace configuration file. The builder uses the named configuration to run the given target.

help

Show help

version

Show version number