CLI Reference

CLI Reference

Command Alias Description
add Adds support for an external library to your project.
analytics Configures the gathering of Angular CLI usage metrics.
build b Compiles an Angular application or library into an output directory named dist/ at the given output path.
cache Configure persistent disk cache and retrieve cache statistics.
completion Set up Angular CLI autocompletion for your terminal.
config Retrieves or sets Angular configuration values in the angular.json file for the workspace.
deploy Invokes the deploy builder for a specified project or for the default project in the workspace.
e2e e Builds and serves an Angular application, then runs end-to-end tests.
extract-i18n Extracts i18n messages from source code.
generate g Generates and/or modifies files based on a schematic.
lint Runs linting tools on Angular application code in a given project folder.
new n Creates a new Angular workspace.
run Runs an Architect target with an optional custom builder configuration defined in your project.
serve s, dev Builds and serves your application, rebuilding on file changes.
test t Runs unit tests in a project.
update Updates your workspace and its dependencies. See https://update.angular.io/.
version v Outputs Angular CLI version.