# Angular CLI

> Command-line tool for creating, serving, scaffolding, and maintaining Angular applications and workspaces via the ng command.

Stars: 27.0k · Language: TypeScript · License: MIT · Categories: Dev Tools

- Repository: https://github.com/angular/angular-cli
- Website: https://cli.angular.dev
- Page: https://www.trmn.sh/tools/angular-cli

## Install

- npm: `npm install -g @angular/cli`

## Overview

Angular CLI is the official command-line interface for the Angular framework. It is used from a shell to initialize, develop, scaffold, and maintain Angular applications. The main entry point is the `ng` command: `ng new [PROJECT NAME]` creates a workspace and `ng serve` runs the application from inside the project directory.

The repository is a monorepo containing several packages. These include `@angular/cli`, `@angular/build` (the Angular build system), `@angular/ssr` for server-side rendering, and `@angular-devkit/architect`. It also holds `@angular-devkit/schematics` and `@angular-devkit/schematics-cli`, which power code generation, along with `@schematics/angular` and `@angular/pwa` schematics. Webpack-based packages (`@angular-devkit/build-angular`, `@angular-devkit/build-webpack`, `@ngtools/webpack`) are also included. `@angular/create` is listed as a separate package.

The tool is aimed at developers building Angular applications. It requires Node.js and npm. The README links to documentation on workspace configuration, project file structure, and schematics, and to an upgrade guide at update.angular.dev for moving projects between versions.

### Installation

```bash
# via npm
npm install -g @angular/cli
```

## Alternatives

- [Nx](https://www.trmn.sh/tools/nx.md): Monorepo build system for TypeScript and polyglot codebases with task caching, affected-only runs, plugins, and CI integration including AI-based self-healing. (TypeScript, 29.4k stars)
- [Vercel CLI](https://www.trmn.sh/tools/vercel-cli.md): Command-line interface for the Vercel platform: deploy projects, run them locally with vercel dev, and manage deployments from the terminal. (TypeScript, 16.5k stars)
- [tsx](https://www.trmn.sh/tools/tsx.md): TypeScript Execute (tsx): a CLI for running TypeScript files directly in Node.js. (TypeScript, 12.2k stars)
- [npm-check-updates](https://www.trmn.sh/tools/npm-check-updates.md): CLI that upgrades package.json dependencies to their latest versions, preserving semver range operators. Works with npm, yarn, pnpm, deno, and bun. (TypeScript, 10.3k stars)
- [concurrently](https://www.trmn.sh/tools/concurrently.md): Node.js CLI that runs multiple shell commands in parallel with prefixed, colored output and options to kill or restart processes. Works on Windows. (TypeScript, 7.9k stars)

---

Canonical: https://www.trmn.sh/tools/angular-cli
