Return to site

ANGULAR INTERVIEW QUESTION: What is Angular CLI? Give some commands?

· ngInterview,fullstack

Angular CLI is an 𝗖ommand 𝗟ine 𝗜nterface which is part of Angular eco-system.

Angular CLI purpose is to speed up the coding experience with friendly commands:

ng new 

Starts a new Angular project by laying down the complete architecture of the project.

ng serve

Compiles and starts the project on your workstation local server accessible on http://localhost:42000.

ng generate

Generates the basics files required for a component, directive, service, class, etc.

ng test

Launches the automated tests of your project.

ng build

Compiles and optimizes your whole project to prepare a delivery on production.