Angular CLI - ng run Command

This chapter explains the syntax, argument and options of ng run command along with an example.


The syntax for ng run command is as follows −

ng run project:target[:configuration]

ng run command runs an Architect target with an optional custom builder configuration defined in angular.json in your project. Here project is the name of the application as defined in angular.json.


The argument for ng run command is as follows −

Sr.No. Argument & Syntax Description
1 <target> Architect target to run.


Options are optional parameters.

Sr.No. Option & Syntax Description
1 --configuration=configuration

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

Aliases: -c.

2 --help=true|false|json|JSON

Shows a help message for this command in the console.

Default: false.

First move to an angular project updated using ng generate command and then run the command.This chapter is available at


An example for ng run command is given below −

\>Node\>TutorialsPoint> ng run TutorialsPoint:build
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.

chunk {polyfills} polyfills-es2015.js, (polyfills) 141 kB [initial] [rendered]
chunk {polyfills-es5} polyfills-es5.js, (polyfills-es5) 656 kB [initial] [rendered]
chunk {main} main-es2015.js, (main) 12.9 kB [initial] [rendered]
chunk {main} main-es5.js, (main) 15.1 kB [initial] [rendered]
chunk {runtime} runtime-es2015.js, (runtime) 6.16 kB [entry] [rendered]
chunk {runtime} runtime-es5.js, (runtime) 6.16 kB [entry] [rendered]
chunk {styles} styles-es2015.js, (styles) 12.4 kB [initial] [rendered]
chunk {styles} styles-es5.js, (styles) 13.9 kB [initial] [rendered]
chunk {vendor} vendor-es2015.js, (vendor) 2.66 MB [initial] [rendered]
chunk {vendor} vendor-es5.js, (vendor) 3.11 MB [initial] [rendered]
Date: 2020-06-04T02:31:28.919Z - Hash: dd73885c28e550d01341 - Time: 13742ms

Here ng build command has built our project TutorialsPoint successfully.

Kickstart Your Career

Get certified by completing the course

Get Started