Markdown
Browse by category β’ Search instantly β’ Copy with one click
π Open Web Version Β· π Download Python App Β· π Command List
Firebase CLI Cheatsheet is a developer reference tool that puts every Firebase CLI command at your fingertips. No more digging through documentation β search, browse, and copy commands instantly.
Available in two formats:
- π HTML5 Web App β Zero dependencies, runs in any browser, mobile-friendly
- π Python Tkinter App β Native desktop GUI, no packages to install
Both versions include 80+ commands across 16 categories, each with:
- β The exact command syntax
- β A clear description of what it does
- β Expandable details with flags, options, and real-world examples
- β One-click copy to clipboard
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π₯ Firebase CLI Cheatsheet π Search... β ββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β CATEGORIES β π Setup & Login β β β 6 commands β β π Setup β β β π Projects β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β β π Hosting β β $ firebase login π Copy β β β β‘ Functions β β Authenticate with your Google account. β β β π₯ Firestore β β βΆ Details β β β ποΈ Database β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β β π Auth β β β π¦ Storage β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β β π§ͺ Emulators β β $ firebase login:ci π Copy β β β π’ Deploy β β Generate a CI/CD authentication token. β β β π Extensionsβ β βΆ Details β β β ... β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β ββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
text
Option 1 β GitHub Pages (Online)
π Open in Browser
Option 2 β Local
# Clone the repo
git clone https://github.com/TheSicknesszar/Firebase-CLI-Cheatsheet.git
# Open the HTML file directly in your browser
# Windows:
start firebase_cli_reference.html
# macOS:
open firebase_cli_reference.html
# Linux:
xdg-open firebase_cli_reference.html
# The HTML version is a single self-contained file β no server, no build step, no dependencies.
## π Python Desktop App
# Clone the repo
git clone https://github.com/TheSicknesszar/Firebase-CLI-Cheatsheet.git
cd Firebase-CLI-Cheatsheet
# Run the app
python firebase_cli_reference.py
Requirements:
Python 3.7+
Tkinter (included with Python on Windows and macOS)
No external packages needed. Uses only Python's built-in tkinter library.
<details> <summary>π§ Linux users β install Tkinter if needed</summary>
```bash
# Ubuntu / Debian
sudo apt-get install python3-tk
# Fedora
sudo dnf install python3-tkinter
# Arch
sudo pacman -S tk
</details>
π Command Categories
# Category Commands Description
1 π Setup & Login 6 Install CLI, authenticate, manage accounts
2 π Project Management 12 Init projects, switch projects, manage aliases
3 π Hosting 9 Deploy sites, preview channels, local server
4 β‘ Cloud Functions 12 Deploy, log, shell, config, secrets
5 π₯ Firestore 5 Rules, indexes, delete data
6 ποΈ Realtime Database 9 CRUD operations, profiling, multi-instance
7 π Auth 2 Import/export user accounts
8 π¦ Storage 2 Deploy storage security rules
9 π§ͺ Emulators 7 Local dev, persistent data, CI/CD testing
10 π’ Deployment 5 Full/partial deploys, rollbacks
11 π Extensions 6 Install, configure, update extensions
12 π§ App Management 6 Register apps, SDK config, SHA certs
13 π Remote Config 3 Get, rollback, version history
14 π App Distribution 3 Distribute APK/IPA, manage testers
15 π οΈ Misc & Utilities 7 Help, version, open console, deploy targets
16 ποΈ Frameworks 2 Next.js, Angular, Nuxt, SvelteKit support
Total: 80+ commands with detailed descriptions
β¨ Features
Both Versions
π Instant Search β Filter across commands, descriptions, and details
π One-Click Copy β Copy any command to clipboard instantly
π 16 Categories β Organized by Firebase service
π Expandable Details β Flags, options, and examples for every command
π¨ Dark Theme β Easy on the eyes for long sessions
Web Version (HTML5)
π± Fully Responsive β Works on desktop, tablet, and mobile
β¨οΈ Keyboard Shortcuts β Ctrl+K to search, Esc to clear
π Mobile Menu β Hamburger sidebar on small screens
β‘ Zero Dependencies β Single HTML file, works offline
π GitHub Pages Ready β Deploy instantly
Python Version (Tkinter)
π₯οΈ Native Desktop App β Runs as a standalone window
π No Pip Installs β Uses only built-in Python libraries
β
Cross-Platform β Windows, macOS, Linux
ποΈ Project Structure
text
Firebase-CLI-Cheatsheet/
β
βββ firebase_cli_reference.html β π Web version (standalone, no dependencies)
βββ firebase_cli_reference.py β π Python Tkinter desktop app
βββ README.md β π This file
βββ .gitignore β π« Git ignore rules
βββ LICENSE β βοΈ MIT License
π₯ Sample Commands
Here's a taste of what's included:
Getting Started
Bash
npm install -g firebase-tools # Install the CLI
firebase login # Authenticate
firebase init # Initialize a project
Deploying
Bash
firebase deploy # Deploy everything
firebase deploy --only hosting # Deploy hosting only
firebase deploy --only functions:myFunc # Deploy one function
firebase deploy --except functions # Deploy all except functions
Local Development
Bash
firebase emulators:start # Start all emulators
firebase emulators:start --import ./data --export-on-exit # Persistent local data
firebase serve --only hosting # Local hosting server
firebase functions:shell # Test functions locally
### Data Management
```bash
firebase database:get /users --output users.json # Export Realtime DB data
firebase firestore:delete users/uid123 --recursive # Delete Firestore docs
firebase auth:export users.json --format json # Export all users| Shortcut | Action |
|---|---|
| Ctrl + K / β + K | Focus search bar |
| Escape | Clear search |
| π€ Contributing | |
| Contributions are welcome! If you'd like to add commands, fix descriptions, or improve the UI: |
- Fork the repository
- Create a feature branch
git checkout -b feature/add-new-commands
- Commit your changes
git commit -m "Added: new Firestore commands" - Push to your fork
git push origin feature/add-new-commands
- Open a Pull Request
- Add Firebase Crashlytics CLI commands
- Add Firebase Performance Monitoring commands
- Add Google Cloud CLI integration commands
- Add firebase.json configuration examples
- Add dark/light theme toggle to web version
- Export commands as PDF/Markdown
| Resource | Link |
|---|---|
| π Live Web Version | GitHub Pages |
| π¦ Repository | GitHub |
| π Official Firebase Docs | firebase.google.com/docs/cli |
| π¦ Firebase CLI npm | npmjs.com/package/firebase-tools |
| π§ͺ Emulator Suite Docs | firebase.google.com/docs/emulator_suite |
β Star this repo if you found it useful! β