Skip to main content

Command Line Interface (CLI) for creating and managing Angular applications.

# To create a new Angular application inside a folder:
ng new <project_name>

# To add a new component to one's application:
ng generate component <component_name>

# To add a new class to one's application:
ng generate class <class_name>

# To add a new directive to one's application:
ng generate directive <directive_name>

# To run the application with the following command in its root directory:
ng serve

# To build the application:
ng build

# To run unit tests:
ng test

# To check the version of your current Angular installation:
ng version