Skip to content

Commit b12dd46

Browse files
jhuleatttaeold
andauthored
add another way to set secrets
Co-authored-by: Daniel Lee <[email protected]>
1 parent 07d3019 commit b12dd46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.guides/usage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export const callLlm = onRequest({ secrets: [LLM_API_KEY] }, async (req, res) =>
3232

3333
When you deploy a function with `secrets`, the CLI will prompt you to enter the secret's value.
3434

35+
Alternatively, you can instruct the user to set the secret using the Firebase CLI command:
36+
37+
firebase functions:secrets:set <NAME>
38+
3539
## Use the Firebase Admin SDK
3640

3741
To interact with Firebase services like Firestore, Auth, or RTDB from within your functions, you need to initialize the Firebase Admin SDK. Call `initializeApp` without any arguments so that Application Default Credentials are used.

0 commit comments

Comments
 (0)