Angular 6/7 CLI Command List

Installing Angular CLI

npm install -g @angular/cli  (Note: You need install Nodejs First in your System CMD where you want to create project)

For Help

ng help,ng generate --help

For Create new Angular APP

ng new my-first-project  (Note: You need to go in Particular folder in CMD where you want to create project)

For Run Angular Project

ng serve  (Note: Default Local host URL `http://localhost:4200`)

Create Component

ng generate component component-name

 

 

 

Leave a Reply