0% found this document useful (0 votes)
29 views2 pages

Angular Commands You Have To Know

This document provides a cheat sheet of essential Angular CLI commands for developers. It includes commands for creating projects, serving applications, generating components and services, building for production, and updating dependencies. The commands are intended to be run from the Angular project's root directory for ease of use.

Uploaded by

abhimanyu thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

Angular Commands You Have To Know

This document provides a cheat sheet of essential Angular CLI commands for developers. It includes commands for creating projects, serving applications, generating components and services, building for production, and updating dependencies. The commands are intended to be run from the Angular project's root directory for ease of use.

Uploaded by

abhimanyu thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Angular commands you have to know

The complete angular course by Jannick Leismann & TutorialsEU

Hi there,

As you dive deeper into Angular, you will find yourself frequently using
several Angular CLI commands.

To make your life a bit easier, I've put together a quick cheat sheet of the
most commonly used commands in Angular, along with a brief
description of each.

Save this sheet for later and refer to it whenever you need a quick
refresher:

ng new projectName
Creates a new Angular project with the specified project name.

ng serve
Builds the application and starts a web server to serve your application
during development.

ng serve --open
or
ng serve -o
Same as ng serve, but also opens your default web browser to the
application.
ng generate component componentName
or
ng g c componentName
Generates a new component with the specified name.

ng generate service serviceName


or
ng g s serviceName
Generates a new service with the specified name.

ng build
Builds your application for production, creating a dist/ folder with the
output.

ng update
Checks your application for outdated dependencies, and can also
update them.

Remember, these commands should be run in a terminal or command


prompt from within your Angular project's root directory.

I hope you find this cheat sheet helpful as you navigate your Angular
journey.

Happy coding!

Jannick & TutorialsEU

You might also like