Angular CLI
The Angular CLI is the fastest, easiest, and recommended way
to develop Angular applications. The Angular CLI makes a number of tasks easy.
Here are some examples of Angular CLI:
- · ng build- Compiles an Angular app into an output directory.
- · ng serve - Builds and serves your application, rebuilding on file changes.
- · ng generate - Generates or modifies files based on a schematic.
- · ng test - Runs unit tests on a given project.
- · ng e2e - Builds and serves an Angular application, then runs end-to-end tests.
Install the Angular CLI:
To install the Angular CLI, open a terminal window and run the following command:
npm install -g @angular/cli