firebase serve
- Run current code locally - Refer to https://firebase.google.com/docs/hosting/test-preview-deployfirebase hosting:channel:deploy release-02-210102
- Preview deploy - Refer to https://firebase.google.com/docs/hosting/test-preview-deployfirebase hosting:channel:delete CHANNEL_ID
- Command for preview channels - https://firebase.google.com/docs/hosting/manage-hosting-resources?authuser=0#cli-commands-preview-channelsfirebase deploy --only hosting
- Command to deploy live. More options check here - https://firebase.google.com/docs/hosting/test-preview-deploy
firebase deploy --only functions:registerPrize
- To deploy a function namedregisterPrize
- Refer to https://firebase.google.com/docs/functions/manage-functions
firebase init emulators
- To initiate emulator in your dev env - Refer to https://firebase.google.com/docs/emulator-suite/install_and_configurefirebase setup:emulators
- To setup emulator - Refer to https://firebase.google.com/docs/emulator-suite/install_and_configurefirebase emulators:start
- To start Emulator - Refer to https://firebase.google.com/docs/emulator-suite/install_and_configurefirebase emulators:start --debug
- To debug emulator run
npm install -g firebase-tools
- Update Firebase or if you want to setup your machine for this project.firebase auth:export usersyymmdd.csv --format=CSV
- Export users data in csv format.