Angular CLI is a Command Line Interface for Angular. It facilitates you to create an application and different components.
Install Angular CLI:
To install the latest version of Angular CLI, run the following npm command.
npm install @angular/cli@latest
To create an application:
The ng new command is used to create a new application in Angular.
Syntax:
ng new application_name
To create components routes, services and pipes:
The ng generate command is used to create a new component, routes, services and pipes in the application.
Syntax:
ng new component_name
To test your app running locally:
The ng serve command is used to test your app locally while developing.
Syntax:
ng serve