How to Check Installed Angular CLI Version?

Last updated on by Digamber
In this tutorial, we are going to find out how to check installed Angular CLI version using the command set of commands.

Verify Angular CLI Installation

Without wasting any time, let’s first find out whether the CLI is installed or not.

ng

If the `ng` command returns a list of Available Commands: then you are good to go.

Otherwise, if it throws an error, then you should run the following command to install Angular CLI in your development system.

npm install -g @angular/cli

Check Angular CLI Version

Let’s find out various ways through which we can find out installed Angular CLI version.

Open a new terminal or command-line tool and run either of the given below command:

ng --version

# or

ng v

The ng –version command output the following details on your terminal screen, It contains the installed Angular CLI, node, OS version.

It will also provide various Angular package details, such as @angular-devkit/architect, @angular-devkit/core, @angular-devkit/schematics, @schematics/angular, @schematics/update and rxjs.

   _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.0-rc.7
Node: 13.11.0
OS: darwin x64

Angular: 
... 
Ivy Workspace: 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.900.0-rc.7
@angular-devkit/core         9.0.0-rc.7
@angular-devkit/schematics   9.0.0-rc.7
@schematics/angular          9.0.0-rc.7
@schematics/update           0.900.0-rc.7
rxjs                         6.5.3

There is another way through which we can check the installed angular CLI version. However, this method will also tell you the other libraries and packages installed in your local development system.

Run the following command in your terminal.

npm list --global --depth 0


/usr/local/lib
├── @angular/cli@9.0.0-rc.7
├── @ionic/cli@6.3.0
├── cordova@9.0.0
├── cordova-res@0.8.1
├── create-react-native-app@2.0.2
├── expo-cli@3.13.2
├── native-run@0.3.0
├── nodemon@2.0.2
├── npm@6.13.7
├── UNMET PEER DEPENDENCY react@16.9.0
├── react-native@0.61.5
├── react-native-cli@2.0.1
├── rxjs@6.5.4
├── to@0.2.9
└── update@0.7.4

As we can see, we have currently @angular/cli@9.0.0-rc.7 version installed.

If you run the above command from your development system’s root folder, you will get the global angular CLI version.

If you run the above commands from a project root folder, you will see the angular version which is being used in that particular project.

Please read: How To Globally Update to Latest Angular 9 Version?