commands.sh

ng

all

Create and manage Angular applications.

More info →

Options (7)

boolean

Create a new Angular application inside a directory

Example: ng {{[n|new]}} {{project_name}}
boolean

Compile the application and start a local development server

Example: ng {{[s|serve]}}
boolean

Create a new component

Example: ng {{[g|generate]}} {{[c|component]}} {{component_name}}
boolean

Create a new component

Example: ng {{[g|generate]}} {{[c|component]}} {{component_name}}
boolean

Build an Angular application or library

Example: ng {{[b|build]}}
boolean

Run unit tests

Example: ng {{[t|test]}}
boolean

Display version

Example: ng {{[v|version]}}

Examples (8)

Create a new Angular application inside a directory

ng [n|new] project_name

Compile the application and start a local development server

ng [s|serve]

Create a new component

ng [g|generate] [c|component] component_name

Build an Angular application or library

ng [b|build]

Run unit tests

ng [t|test]

Add a package to the current project

ng add package

Update workspace dependencies

Display version

ng [v|version]
made by @shridhargupta | data from tldr-pages