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.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Installation and Setup
Before any firebase command works, you need the tool on your machine — and there's more than one way to get it. These methods cover the npm global install, a standalone binary that needs no Node.js, Homebrew on macOS, and the zero-install npx route, plus how to check your version, upgrade, and pull up built-in help.
| 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. |