Member-only story

Basic Angular CLI Commands for Software Engineers

Top Angular CLI commands for front-end developers

Mwiza Kumwenda
4 min readMar 9, 2020
image by Free-Photos from Pixabay

Working with the command-line interfaces (CLI) is an integral part of a software engineers’ journey. Basically, a CLI accepts a command and some arguments and executes a specific task or program accordingly.

The Angular CLI is command-line tool that allows you to scaffold, develop and maintain Angular applications.

In this guide we will take a look at some common Angular CLI commands. Let’s dive in.

Install Angular CLI

If you don’t have Angular CLI installed on your machine follow along to install it.

You can easily install the Angular CLI via node package manager (npm). To install the Angular CLI globally simply run the following command:

$ npm install -g @angular/cli

Scaffold an application

Now that you have the Angular CLI installed. Go to your projects directory and scaffold a new application named my-ng-app by running the following command:

$ ng new my-ng-app

The structure of the application will look like the one below.

--

--

Mwiza Kumwenda
Mwiza Kumwenda

No responses yet