Back to Angular

CLI Reference

adev/src/content/reference/cli.md

22.0.0-next.103.0 KB
Original Source

CLI Reference

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.
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.
serves, devBuilds and serves your application, rebuilding on file changes.
testtRuns unit tests in a project.
updateUpdates your workspace and its dependencies. See the Update Guide.
versionvOutputs Angular CLI version.