ng-version
TLDR
Display version
Display the CLI, framework, system, and project dependency versions in JSON format
SYNOPSIS
ng version [--verbose] [--help]
PARAMETERS
--verbose
Provides detailed output including all package versions and paths
--help, -h
Displays help information for the command
DESCRIPTION
The ng version command (often invoked as ng --version or queried as 'ng-version') is part of the Angular CLI, a popular command-line tool for developing Angular web applications. While not a native Linux utility, it runs seamlessly on Linux systems via Node.js and npm.
Executing ng version outputs the installed Angular CLI version, along with versions of key dependencies like @angular/core, TypeScript, and Node.js. The output is formatted as a hierarchical tree, making it easy to scan for compatibility issues or update needs. This is essential for developers starting projects, debugging, or migrating Angular apps.
On Linux, install with sudo npm install -g @angular/cli. It helps confirm setup before commands like ng new or ng serve. Note: it's not in standard Linux man pages but widely used in web development workflows.
CAVEATS
Requires Node.js and npm installed; global installation may need sudo on Linux. Output depends on project context if run inside one.
INSTALLATION NOTE
Use npm install -g @angular/cli on Linux; verify with ng --version.
OUTPUT EXAMPLE
Typical output:
Angular CLI: 17.0.0
Node: 20.10.0
Package Manager: npm 10.2.3
HISTORY
Introduced with Angular CLI v1.0 in 2016 by the Angular team at Google. Evolved with Angular releases; current versions (15+) show streamlined dependency trees. Usage surged with Angular's adoption in enterprise web dev.


