ng

Create and manage Angular applications. More information: <https://angular.io/cli>.

Install

All systems
curl cmd.cat/ng.sh
Debian Debian
apt-get install ng-common
Ubuntu
apt-get install ng-common
image/svg+xml Kali Linux
apt-get install ng-common
Windows (WSL2)
sudo apt-get update sudo apt-get install ng-common
Raspbian
apt-get install ng-common

Create and manage Angular applications. More information: <https://angular.io/cli>.

  • 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
  • Build the application:
    ng build
  • Run unit tests:
    ng test
  • Check the version of your current Angular installation:
    ng version

© tl;dr; authors and contributors