Angular Cheatsheet

This post is an agglomeration of commonly used Angular CLI commands for easier reference.
Let’s get started!
- Installation :
npm install -g @angular/cli typescript
- Useful commands : replace <…> with your text
- Create a new project :
ng new <appname>
- Start development server :
ng serve -c -o
- Generate new component :
ng g c <componentname>
- Genrate new page :
ng g p <pagename>
- Generate new service :
ng g s <servicename>
- Generate new pipe :
ng g pipe <pipename>
- Create a new project :
- Deployment command :
ng build <appname> -c production
These are a few basic collections of commands that I use for easy reference and will keep this list updated as needed.
Credits:\ Cover image:\ Photo by Caspar Camille Rubin on Unsplash
Thank you.