Java Topics

Angular CLI Commands

 Angular CLI is a command line interface tool which is used to initialize ,develope, scaffold, and maintain Angular applications.You can use these command directly on command prompt or indirectly through an interactive i.e., Angular Console.

List of Angular CLI Commands :

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 workspace

doc

d

It opens the official angular documentation (angular.io) in a browser, and searches for a given keyword.

generate

g

It generates and/or modifies files based on a schematic.

help

 

new

 

serve

 

 

n

 

s

It provides a list of available commands and their short descriptions.

It creates a new workspace and an initial Angular


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 outputs Angular CLI version.