Documentation page

Syntax

Basic Syntax

ng <command> <options>

Option Syntax

--option / -alias

Boolean Options

--option / --no-option

Array Options

--option val1 val2 / --option val1 --option val2

COMMANDALIASDESCRIPTION
addAdds support for an external library to your project.
analyticsConfigures the gathering of Angular CLI usage metrics.
buildbCompiles an Angular application or library into an output directory named dist/ at the given output path.
cacheConfigure persistent disk cache and retrieve cache statistics.
completionSet up Angular CLI autocompletion for your terminal.
configRetrieves or sets Angular configuration values in the angular.json file for the workspace.
deployInvokes the deploy builder for a specified project or for the default project in the workspace.
docdOpens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.
e2eeBuilds and serves an Angular application, then runs end-to-end tests.
extract-i18nExtracts i18n messages from source code.
generategGenerates and/or modifies files based on a schematic.
lintRuns linting tools on Angular application code in a given project folder.
newnCreates a new Angular workspace.
runRuns an Architect target with an optional custom builder configuration defined in your project.
servesBuilds and serves your application, rebuilding on file changes.
testtRuns unit tests in a project.
updateUpdates workspace and its dependencies
versionvOutputs Angular CLI version.