The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell.

 

new

Create New Project

ng new my-first-project

 

serve

Run project

ng serve

Run project with particular configuration

ng serve --configuration=uat

 

build

Build your project

ng build

Create production build 

ng build --prod

Create production build with particular configuration

ng build --prod --configuration=uat 

 

generate

Create module  

ng generate module  user

Create module with routing

ng generate module user --routing

Create Component

ng generate component customer

Create Service

ng generate service  userService

Create Interceptor

ng generate interceptor httpInterceptor

Create Guard

ng generate guard authGuard