All Angular CLI commands
Angular CLI is a command line interface tool which is used to initialize, develop, scaffold, and maintain Angular applications. You can use these command directly on command prompt or indirectly through an interactive UI i.e. Angular Console.
Command Alias Description
add It is used to add support for an external library to your project.
build b It compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
config It retrieves or sets Angular configuration values in the angular.json file for the workspace.
doc d It opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.
e2e e It builds and serves an Angular app, then runs end-to-end tests using Protractor.
generate g It generates and/or modifies files based on a schematic.
help It provides a list of available commands and their short descriptions.
lint l It is used to run linting tools on Angular app code in a given project folder.
new n It creates a new workspace and an initial Angular app.
run It runs an Architect target with an optional custom builder configuration defined in your project.
serve s It builds and serves your app, rebuilding on file changes.
test t It runs unit tests in a project.
update It updates your application and its dependencies. See https://update.angular.io/
version v It utputs Angular CLI version.
xi18n It extracts i18n messages from source code.
ng add Command
The ng add command is used to add support for an external library to your project. It adds the npm package for a published library to your workspace, and makes your default app project to use that library, in whatever way is specified by the library's schematic. For example, if you add @angular/pwa, then it will configure your project for PWA support.
The default app project is the value of defaultProject in angular.json.