ng
Command-line Interface (CLI) for creating and managing Angular applications.
- Create a new Angular application inside a directory:
ng new {project_name}
- Add a new component to one's application:
ng generate component {component_name}
- Add a new class to one's application:
ng generate class {class_name}
- Add a new directive to one's application:
ng generate directive {directive_name}
- Run the application with the following command in its root directory:
ng serve
ng build
ng test
- Check the version of your current Angular installation:
ng version
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).