Firebase Command Line Tools MCP
Firebase Command Line Tools let you manage, test, and deploy Firebase projects from the command line. It supports deploying code, running local servers, and interacting with Firebase databases and authentication.
How to Install and Use Firebase Command Line Tools MCP
Firebase Command Line Tools MCP (firebase-tools) lets you manage your Firebase projects right from your computer. You can deploy code, run local servers, and work with your Firebase database easily. Here’s how to install and start using it step-by-step.
Step 1: Install Node.js and npm
Before installing Firebase Command Line Tools MCP, you need Node.js and npm (Node Package Manager) on your computer. Installing Node.js will also install npm automatically.
- Go to Node.js website and download the installer for your operating system.
- Run the installer and follow the instructions to complete the setup.
Once installed, you can check if Node.js and npm are ready by opening your terminal or command prompt and typing:
node -v
npm -v
You should see version numbers for both.
Step 2: Install Firebase Command Line Tools MCP
With Node.js and npm ready, you can install the Firebase CLI globally. This means you can use the firebase command anywhere on your computer.
Run this command in your terminal or command prompt:
npm install -g firebase-tools
This installs the Firebase CLI and makes the firebase command available globally.
Step 3: Verify the Installation
After installation, check that Firebase CLI is installed correctly by running:
firebase --version
You should see the version number of the Firebase CLI printed. This confirms the tool is ready to use.
Step 4: Log in to Firebase
To use Firebase CLI, you need to log in to your Firebase account. This connects the CLI to your projects.
Run:
firebase login
This opens a browser window where you sign in with your Google account. After signing in, the CLI will remember your login.
If you are on a machine without a browser, use:
firebase login --no-localhost
This gives you a code to paste into a browser on another device.
Step 5: Initialize a Firebase Project
To start working on a Firebase project, you need to initialize it in your project folder.
First, go to your project folder in the terminal:
cd path/to/your/project
Then run:
firebase init
This command sets up Firebase in your folder and creates a firebase.json file with your project configuration.
Step 6: Deploy Your Project
Once your project is ready, you can deploy it to Firebase with:
firebase deploy
This uploads your code and assets to your Firebase project.
Optional: Use Standalone Binary
If you prefer not to install Node.js and npm, you can use the standalone Firebase CLI binary. Run this command to download and install it:
curl -sL firebase.tools | bash
This sets up the firebase executable without dependencies.
By following these steps, you can install and start using Firebase Command Line Tools MCP quickly and easily. Use the firebase --help command anytime to see all available commands and get more details.