What does the Angular CLI do? Name some common commands.
Model answer
The Angular CLI is a command-line tool that creates and manages Angular projects so you do not set up the build by hand. Common commands: ng new creates a project, ng serve runs a development server with live reload, ng generate (or ng g) creates components, services and more, ng build makes a production build, and ng test runs unit tests.
It also handles updates: ng update helps move a project to a newer Angular version.
Tips
- Practise ng generate component and ng build before the interview.
Learn this topic
Angular Tutorial: Beginner to Advanced .
Sign in to add your own answer.
More questions
- What is Angular, and how is it different from AngularJS?
- What is a single-page application (SPA)?
- What is a standalone component, and why did Angular move away from NgModules?
- What is TypeScript, and why does Angular use it?
- Describe the structure of a basic Angular project.
- What happens when an Angular application starts?