Angular CLI
The Angular CLI is a very simple, yet extremely useful, node package that takes the form of a command-line tool. The purpose of this tool is to take away most of the pain of getting started with Angular 2. The problem with any application based on a framework is to know how to bootstrap things for your code to communicate smoothly with the framework's features and libraries.
This tool, provided directly by the Angular team, provides working blueprints for ready-to-go applications. Indeed, by using one simple command we can generate a complete boilerplate for Angular that can be transpiled, run locally, tested, and even deployed to GitHub pages.
Installation
Installing the Angular CLI is dead simple as it's a node
package. The following command will work, regardless of your operating system:
npm install -g angular-cli
Note
If you are using a Unix-based system, a sudo
might be required for global installations.
Creating a new application
Once the Angular CLI is installed, we can begin...