LinuxCommandLibrary

ng

angular CLI

TLDR

Create new project

$ ng new [project-name]
copy
Serve application
$ ng serve
copy
Build application
$ ng build
copy
Generate component
$ ng generate component [name]
copy
Generate service
$ ng generate service [name]
copy
Run tests
$ ng test
copy
Run e2e tests
$ ng e2e
copy
Add library
$ ng add [package-name]
copy

SYNOPSIS

ng [command] [options]

DESCRIPTION

ng is the Angular CLI. It creates and manages Angular applications.
The tool scaffolds projects. Handles building, testing, and deployment.

PARAMETERS

COMMAND

Angular CLI command.
new NAME
Create new project.
serve
Start dev server.
build
Build project.
generate TYPE NAME
Generate code.
test
Run unit tests.
--help
Display help information.

CAVEATS

Node.js required. TypeScript-based. Configuration in angular.json.

HISTORY

Angular CLI was created by Google to provide tooling for Angular framework development.

SEE ALSO

npm(1), node(1), nx(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community