Firebase CLI (Command Line Interface) is Google's official command-line tool for managing, testing, and deploying Firebase projects directly from the terminal. It provides comprehensive control over Firebase services including Hosting, App Hosting, Cloud Functions, Firestore, SQL Connect, Realtime Database, Authentication, Storage, and Extensions — enabling developers to automate workflows, run local emulators, and deploy production applications. The CLI supports both interactive project initialization and non-interactive CI/CD integration, making it essential for modern Firebase development. As of 2026, it also hosts the official Firebase MCP Server, connecting AI coding tools directly to your Firebase project.
What This Cheat Sheet Covers
This topic spans 22 focused tables and 172 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Installation and Setup
| Method | Example | Description |
|---|---|---|
npm install -g firebase-tools | • Installs Firebase CLI globally via Node.js • requires Node.js 18+ and enables npm update -g firebase-tools upgrades. | |
curl -sL | bash | • Downloads standalone executable without Node.js dependency • auto-updates on launch. | |
brew install firebase-cli | • Installs Firebase CLI on macOS via Homebrew • update with brew upgrade firebase-cli. | |
npx -y firebase-tools deploy | • Runs CLI without global install • useful for one-off commands or CI environments. |