Firebase
Deploy Commands
Deploy your Firebase projects including Hosting, Functions, Firestore rules, and Storage rules. Learn selective deployment, preview channels, and rollback strategies.
11 commands
Pro Tips
Deploy only specific targets: 'firebase deploy --only hosting' or 'firebase deploy --only functions:myFunction' to save time.
Use 'firebase hosting:channel:deploy preview' to create preview URLs for testing before going live.
Add '--debug' flag to get detailed logs when deployments fail — shows the exact error.
Common Mistakes
Running 'firebase deploy' without '--only' deploys everything — Hosting, Functions, rules, and indexes. Be specific.
Deploying Firestore rules takes effect immediately. Test rules in the emulator before deploying to production.