firebase functions:secrets:set STRIPE_API_KEY

Category: Firebase & Firestore

firebase functions:secrets:set STRIPE_API_KEY

Create or update a functions secret

Creates or rotates the secret STRIPE_API_KEY in Cloud Secret Manager for use by Cloud Functions, prompting for the value or reading it from --data-file. Reference it in code with the functions SDK instead of hardcoding credentials. Secrets are versioned, so rotation creates a new version; access the value with functions:secrets:access.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.