Search⌘ K
AI Features

Angular CLI: Setup on the Local Machine

Explore the process of installing Angular CLI globally on your local machine and get acquainted with essential CLI commands. Understand how to create projects, build applications, run tests, and deploy your Angular apps efficiently using the CLI.

We'll cover the following...

Installing the Angular CLI

The Angular CLI is part of the Angular ecosystem and can be downloaded from the npm package registry. Since it is used for creating Angular projects, we need to install it globally in our system.

Open a terminal and run the following command:

npm install -g @angular/cli
Command for installing the Angular CLI

Note: On some Windows systems, we may need elevated permissions, so we should run our terminal as an administrator. In Linux/macOS systems, we can run the command using the sudo keyword.

The command that we used to install the Angular CLI uses the npm client followed by a set of runtime
arguments:

  • install or i: Denotes the installation of a package. ...