...

/

Common Firebase CLI Commands

Common Firebase CLI Commands

Learn some common Firebase CLI commands.

We saw some Firebase CLI commands in the previous lesson. Now, let’s take a look at more common Firebase CLI commands and their descriptions.

Configuration and project management commands

These commands are used to configure the Firebase CLI and manage projects with the Firebase CLI. We can see them in the table below:

Command

Description

login

Authenticates the Firebase CLI with your Firebase account.

logout

This logs out of the CLI.

init

This initializes Firebase and sets up a new Firebase project in the directory. It can be used to initialize specific features when called with them. It creates a configuration file, firebase.json, in the current directory.

--help

This returns helpful information on the Firebase CLI or specific CLI commands.

projects:list

This lists all Firebase projects to which an account has access.

projects:create

This creates a new Firebase project.

Deployment and local emulator commands

These commands are used to deploy Firebase applications and allow ...