Ramit DevOps architect, open source enthusiast, hobbyist writer.

Angular Cheatsheet

Angular Cheatsheet

This post is an agglomeration of commonly used Angular CLI commands for easier reference.

Let’s get started!

  1. Installation : npm install -g @angular/cli typescript
  2. 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>
  3. 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.

comments powered by Disqus