Angular CLI
Angular CLI is an extremely useful tool when it comes to managing your Angular project. It provides all sorts of capabilities, such as creating projects, generating code, managing and upgrading packages, building and testing apps, and more.
Furthermore, Angular CLI-based projects are not just about the app itself. Such projects can actually contain multiple apps and libraries within, turning the project into something similar, in concept, to an actual workspace that contains multiple projects within.
Setup and common commands
Let's use Angular CLI to create and manage an Angular Everyday Market app.
First, open the Terminal or Command Prompt and install Angular CLI with the following steps:
- Run the following command:
npm install -g @angular/cli
- Afterward, the CLI should be installed, and you can start using it by executing the
ng
command. - Next, let's use the basic commands available as part of the CLI.
Using the Terminal, create our Everyday Market project:
- Run the following command:
ng...