Angular CLI Cheat Sheet
Get more Angular developer tips at [Link]
COMMAND help COMMAND new COMMAND generate
ALIAS ALIAS n ALIAS g
DESCRIPTION DESCRIPTION DESCRIPTION
Lists available commands Creates a new workspace Generates and/or modifies
and their short descriptions. and an initial Angular app. files based on a schematic.
COMMAND build COMMAND serve COMMAND lint
ALIAS b ALIAS s ALIAS l
DESCRIPTION DESCRIPTION DESCRIPTION
Compiles an Angular app into Builds and serves your app, Runs linting tools on Angular
an output directory named rebuilding on file changes. app code in a given project
dist/ at the given output path. folder.
Must be executed from within
a workspace directory.
COMMAND update
COMMAND deploy
ALIAS
COMMAND add ALIAS
ALIAS DESCRIPTION
Updates your application DESCRIPTION
DESCRIPTION
and its dependencies. Invokes the deploy builder
See [Link] for a specified project or
Adds support for an external for the default project
library to your project. in the workspace.
COMMAND test COMMAND e2e COMMAND config
ALIAS t ALIAS e ALIAS
DESCRIPTION DESCRIPTION DESCRIPTION
Runs unit tests in a project. Builds and serves an Angular Retrieves or sets Angular
app, then runs end-to-end configuration values
tests using Protractor. in the [Link] file
for the workspace.
COMMAND analytics
ALIAS
COMMAND doc
COMMAND version
ALIAS d
DESCRIPTION ALIAS v
Configures the gathering
of Angular CLI usage metrics. DESCRIPTION
See [Link] DESCRIPTION
Opens the official Angular
/usage-analytics-gathering documentation ([Link]) Outputs Angular CLI version.
in a browser, and searches
for a given keyword.
COMMAND run
ALIAS COMMAND
COMMAND xi18n
ng [command] --help
ALIAS i18n-extract
DESCRIPTION
Runs an Architect target DESCRIPTION
with an optional custom builder DESCRIPTION
List the command description
configuration defined Extracts i18n messages and available params.
in your project. from source code. Run inside Angular CLI workspace