In this article, you will get to know about the various useful commands commonly used in Angular. To run the commands you have to use the tools like cmd (command prompt) or MS Powershell.
The commands are as follows,
To check the Angular version
Ng -v
To check the npm version
Npm -v
Create a new project in Angular:
Ng new ProjectName
Folder structure after creating a new project
To run the Angular applications,
Ng serve –o
To test the Angular application
Ng test
To deploy the Angular application
Ng deploy
To check the configuration
Ng config
These are some of the useful commands which can be used while creating an Angular project. Hope this article is useful for everyone.