home / cloud / firebase

Firebase CLI

Official · Firebase
4.4k

Official Firebase CLI for deploys, local emulators, project and app management, and Firebase data, auth, and config workflows.

$npm install -g firebase-tools
Language
TypeScript
Stars
4,351
Category
Cloud & Storage
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

Firebase CLI is Firebase's official command surface for provisioning and operating Firebase projects from the shell. It spans project bootstrap, local emulation, deploys, and direct service management for apps, auth, databases, logs, and remote configuration.

What It Enables
  • Deploy Hosting, Functions, Remote Config, Auth, Data Connect, and other configured Firebase targets from a checked-in firebase.json.
  • Run local emulators and wrap test scripts with emulators:start or emulators:exec before shipping changes.
  • List projects and apps, read function logs, import or export Auth users, and read or write Realtime Database and Remote Config state from the shell.
Agent Fit
  • -j, --json is implemented at the CLI framework layer, and many inspect commands return structured objects or raw JSON for follow-up parsing.
  • It fits inspect, change, and verify loops well because the same tool can query project state, run local emulators, and deploy remote changes.
  • Credentials, browser login, default confirmations, and repo-local config assumptions still limit unattended use; the repo also ships firebase mcp for teams that want that integration model.
Caveats
  • Many high-value commands assume an existing Firebase project directory or an explicit -P project id.
  • Output is not uniformly machine-readable: deploy and emulator startup are still human-first status flows even though the CLI broadly supports JSON.