Install the Firebase CLI

Learn how to install and initialize Firebase CLI.

Firebase command line interface (CLI)

Firebase command line interface (CLI) is used to interact with the Firebase web application. We will use it to interact with the application you created a short while ago.

Caution: As stated in the previous lesson, we are not going to follow the instructions in the Firebase wizard displayed in your web browser. We are currently working in the enable-firebase-hosting branch.

Installing the Firebase CLI

First of all, to keep the Firebase scripts and configuration files out of the main web service, let’s create a firebase folder at services/web/firebase. We also need a package.json file where we can add NPM scripts to deal with Firebase. For this purpose, run the following commands:

 ...