https://cli.angular.io/ code example
Example 1: angular cli
/* @latest is optional */
npm install -g @angular/cli@latest
Example 2: angular cli
ng new my-first-project
ng serve
/* @latest is optional */
npm install -g @angular/cli@latest
ng new my-first-project
ng serve