Angular CLI - ng run
Execute a named Architect target configured in the workspace.

How it works
ng run executes a configured Architect target in project:target[:configuration] form. Targets are defined in angular.json and can use builders from Angular or installed packages. This makes custom and third-party build, test, or deployment operations accessible through one command pattern.
Good practice
- Check the local Angular CLI version and run commands from the intended workspace.
- Review angular.json targets and builders before assuming optional commands are configured.
- Use the package manager and lockfile selected by the project.
- Review generated files, configuration changes, and build output before committing or deploying.
Further reading: Tutorialspoint: Angular CLI - ng run · Current Angular CLI reference · Workspace configuration.
Back to course overview · Previous: Angular CLI - ng build · Next: Angular CLI - ng serve