Firebase CLI Deploy Firebase apps
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
firebase loginfirebase initfirebase use <project>
firebase emulators:start
firebase deployfirebase deploy --only hosting
firebase functions:log
firebase projects:list
Concepts
- firebase init firebase.json
- Emulators local test
- Project live services
Account & Projects
firebase loginfirebase login --no-localhost
firebase logoutfirebase projects:list
firebase use <project>
firebase use --add
firebase use <alias>
firebase --project <id> <command>
firebase login:list
firebase open <resource>
Setup
npm install -g firebase-tools
firebase initfirebase init hosting
firebase apps:list
firebase apps:sdkconfig <platform>
<app-id>
Deploy
firebase deployfirebase deploy --only hosting
firebase deploy --only functions
firebase deploy --only functions:<name>
firebase deploy --only firestore:rules
firebase deploy --only firestore:indexes
firebase deploy --except functions
firebase deploy --message "<msg>"
Hosting
firebase hosting:channel:deploy <channel>
firebase hosting:channel:list
firebase hosting:channel:delete <channel>
firebase hosting:clone <src>:<ch>
<dst>:live
firebase serve --only hosting
firebase hosting:disable
Functions
firebase functions:log
firebase functions:log --only <name>
firebase functions:list
firebase functions:delete <name>
firebase functions:secrets:set <KEY>
firebase functions:secrets:access <KEY>
firebase functions:shell
Emulators & Firestore
firebase emulators:start
firebase emulators:start --only <list>
firebase emulators:start --import <dir>
firebase emulators:start --export-on-exit <dir>
firebase emulators:exec "<cmd>"
firebase setup:emulators:firestore
firebase firestore:indexes
firebase firestore:delete <path> -r
firebase firestore:delete --all-collections
firebase database:get <path>
CI & Config
firebase --token <token> <command>
firebase login:ci
firebase --debug <command>
firebase --non-interactive <command>
firebase --json <command>
firebase help <command>
Recipes
firebase loginfirebase initfirebase emulators:startfirebase deploy
firebase use --add # pick project, alias stagingfirebase use stagingfirebase deploy --only hostingfirebase use prod
firebase hosting:channel:deploy pr-42 --expires 3d# share URL, then:firebase deploy --only hosting
firebase emulators:exec --only firestore \ "npm test"



