# How to install/ update/ uninstall Angular CLI?

Angular CLI is a command-line interface tool to develop, scaffold, build, deploy and maintain Angular applications.

To begin with, developing Angular applications, you must install Angular CLI.

Ok, let's begin!

### Install Angular CLI

Before installing Angular CLI, make sure you have compatible Node.js is installed in your machine.

Check the version of Node.js needed for Angular CLI  [here](https://github.com/angular/angular-cli#installation).

#### Node.js Installation

Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Angular is built on top of Node.js, so this is one of the necessary software you need to have.

Install Node.js from the official Node  [website](https://nodejs.org/en/download/).
 
NPM gets installed along with Node.js, which is a package manager that downloads the dependencies (libraries) from the NPM repository needed for Angular app development.

#### Angular CLI Installation

It is a command-line interface for Angular that helps in creating new projects, building & packaging the application, etc., 

You can install it right from Node.js command prompt/ Terminal/ Windows command prompt using the below command.

![angular-cli-install.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623931614539/9yQf92mF1.png)

#### Verify Angular CLI Installation

Run the below command to check if Angular CLI was successfully installed in your machine.


![ng-cli-verify.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623932852918/KXAizKF6k.png)

You should see the Angular CLI version as in the below screenshot.

![angular-cli-bash.JPG](https://cdn.hashnode.com/res/hashnode/image/upload/v1623932056291/NlibH24P4.jpeg)

### Update Angular CLI

Angular releases a new version once every 6 months. It is better to update the CLI to 

Run below three commands to update Angular CLI to the latest version in your machine.

First, two commands deal with uninstalling and the third command installs the latest CLI.

![angular-cli-update.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623932320016/aGSB-q_Bt.png)

### Uninstall Angular CLI

Just in case you want to uninstall Angular CLI from your machine, you need to run the below commands.

![angular-cli-uninstall.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1623932559679/7eHv1YPOR.png)

Pour in your comments if you have any questions related to Install/ Update/ Uninstall Angular CLI. 

Happy learning!

I tweet a lot about Angular, so feel free to follow me on Twitter at  [AskUdhay](https://twitter.com/AskUdhay). 
