0
0
Firebasecloud~15 mins

Firebase CLI setup - Mini Project: Build & Apply

Choose your learning style9 modes available
Firebase CLI setup
📖 Scenario: You are starting a new web project and want to use Firebase services. To manage your Firebase project easily, you need to set up the Firebase Command Line Interface (CLI) on your computer.
🎯 Goal: Set up the Firebase CLI tool on your computer and initialize a Firebase project folder ready for deployment.
📋 What You'll Learn
Install Firebase CLI globally using npm
Log in to Firebase using the CLI
Initialize a Firebase project in the current folder
Select the default Firebase project during initialization
💡 Why This Matters
🌍 Real World
Developers use Firebase CLI to manage and deploy Firebase projects efficiently from their local machines.
💼 Career
Knowing how to set up and use Firebase CLI is essential for frontend and backend developers working with Firebase services.
Progress0 / 4 steps
1
Install Firebase CLI globally
Run the command npm install -g firebase-tools in your terminal to install the Firebase CLI globally on your computer.
Firebase
Need a hint?

Use npm to install the Firebase CLI globally so you can use the firebase command anywhere.

2
Log in to Firebase using CLI
Run the command firebase login in your terminal to log in to your Firebase account through the CLI.
Firebase
Need a hint?

This command opens a browser window to authenticate your Firebase account.

3
Initialize Firebase project in current folder
Run the command firebase init in your terminal to start the Firebase project initialization in the current folder.
Firebase
Need a hint?

This command lets you select Firebase features and sets up configuration files.

4
Select default Firebase project during initialization
During firebase init, select your existing Firebase project by choosing it from the list to set it as the default project for this folder.
Firebase
Need a hint?

When prompted, use arrow keys to select your Firebase project and confirm.