ng-run
executes an Architect target defined in angular
TLDR
Run architect target
$ ng run [project]:[target]
Run with configuration$ ng run [project]:[target]:[configuration]
Run custom builder$ ng run [project]:build:production
SYNOPSIS
ng run project:target[:configuration] [options]
DESCRIPTION
ng run executes an Architect target defined in angular.json. It is the low-level command used to invoke builders and can run custom builders or targets not covered by dedicated commands like ng build, ng serve, or ng test.Any options accepted by the underlying builder may be appended after the target name. Part of the Angular CLI.
PARAMETERS
project:target
Project and Architect target to run (e.g., `my-app:build`).project:target:configuration
Run the target using the named configuration defined in angular.json (e.g., `my-app:build:production`).--help
Display help for the specified target.--configuration name, -c name
Named builder configuration to use (alternative to third colon-separated segment).
CAVEATS
Requires a valid Angular workspace (angular.json). The target and configuration must be defined in the workspace configuration.
