Following are the commands
- npm install -g @angular/cli (to install cli)
- ng new my-angular-app (to create workspace)
- cd my-angular-app
- ng serve -o (to open app on localhost)
- ng test (to test using karma and jasmine)
- ng build –prod (to deploy app to dist folder)