Firebase
Functions Commands
Deploy and manage serverless Cloud Functions triggered by Firebase events, HTTP requests, or scheduled jobs. Handle backend logic without managing servers.
8 commands
Pro Tips
Use 'firebase functions:log' to tail function logs in real-time for debugging deployed functions.
Deploy a single function: 'firebase deploy --only functions:functionName' — avoids redeploying all functions.
Set runtime config with 'firebase functions:config:set service.key="value"' for API keys and secrets.
Common Mistakes
functions:config is deprecated for Firebase v2 functions. Use parameterized configuration or Secret Manager instead.
Cold starts add latency. Keep function dependencies minimal and use '--min-instances 1' for latency-critical functions.