Starter commands, major components, and CLI scaffolds

Starter commands help generate new projects or add dependencies. Angular CLI commands help create major components by automatically generating boilerplate scaffolding code with ease. For the list of full set of commands, visit https://github.com/angular/angular-cli/wiki:

Name Purpose CLI Command
New Creates a new Angular application with initialized git repository, package.json, and routing already configured. Run from parent folder.

npx @angular/cli new project-name --routing

Update Updates Angular, RxJS, and Angular Material dependencies. Rewrites code, if necessary, to maintain compatibility.

npx ng update

Add Material Installs and configures Angular Material dependencies. ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.