firebase
Firebase platform management CLI
TLDR
SYNOPSIS
firebase [options] command
DESCRIPTION
firebase is the CLI for Firebase, Google's mobile and web application platform. It manages deployments for Hosting, Cloud Functions, Firestore, Realtime Database, Authentication, and other Firebase services.The CLI handles project initialization, local development with emulators, and deployment workflows. It integrates with Google Cloud and supports multiple environments.
PARAMETERS
login
Authenticate with Google account.logout
Sign out.init
Initialize Firebase project in directory.deploy
Deploy to Firebase services.--only services
Deploy specific services.serve
Start local development server.emulators:start
Start Firebase emulators.projects:list
List available projects.use project
Switch active project.functions:log
View Cloud Functions logs.hosting:disable
Disable hosting for project.
CONFIGURATION
firebase.json
Project configuration including hosting rules, function settings, and database rules..firebaserc
Project aliases and active project selection.
CAVEATS
Requires Node.js (install via `npm install -g firebase-tools`). A Google account is needed for authentication. Some services (Cloud Functions, extended Firestore usage) require a Blaze billing plan. The emulator suite requires Java for Firestore and Realtime Database emulators.
HISTORY
Firebase was founded in 2011 and acquired by Google in 2014. The Firebase CLI evolved from basic hosting deployment to support the expanding Firebase platform including Cloud Functions, Firestore, and comprehensive local emulation.
