0% found this document useful (0 votes)
2 views

Angular Cheatsheet

The Angular CLI Cheat Sheet provides a quick reference for various Angular CLI commands, their aliases, and descriptions. Key commands include creating a new workspace, building and serving applications, running tests, and updating dependencies. Additional functionalities include linting, deploying, and accessing documentation.

Uploaded by

yahoonilesht
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Angular Cheatsheet

The Angular CLI Cheat Sheet provides a quick reference for various Angular CLI commands, their aliases, and descriptions. Key commands include creating a new workspace, building and serving applications, running tests, and updating dependencies. Additional functionalities include linting, deploying, and accessing documentation.

Uploaded by

yahoonilesht
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Angular CLI Cheat Sheet

Get more Angular developer tips at kuncevic.dev

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 https://update.angular.io/ 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 angular.json 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 https://angular.io/cli/ DESCRIPTION
Opens the official Angular
/usage-analytics-gathering documentation (angular.io) 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

You might also like