browse functions secrets attach links a project secret by ID
Introduced 2026-09-23 · score 0.90
HOW TO USE IT
When an existing project secret needs to be available to a published function, run `browse functions secrets attach` with the function ID and secret ID.
browse functions secrets attach <functionId> <secretId>WHY THIS HELPS
Attach an existing project secret to a function that needs it.
REQUIREMENTS AND LIMITATIONS
- Version: 0.11.0
- <functionId> (required): ID of the function to attach the secret to; the docs say to use the ID from `builtFunctions[].id` in the publish output.
- <secretId> (required): ID of the existing secret to attach. The docs show the argument but do not further define it.
- Prerequisite: The project secret must already exist; the README shows creating it with `browse cloud secrets create BROWSERBASE_API_KEY --env BROWSERBASE_API_KEY`.
- Prerequisite: Publish the function first; the README describes attaching the secret to the published function and identifies its ID in the publish output.
- The project secret must already exist; attachment is by function ID.
FIRST-PARTY EVIDENCE
- https://github.com/browserbase/stagehand/blob/main/packages/cli/CHANGELOG.md#0110
- https://github.com/browserbase/sdk-functions-node
Check the installed version and the source before using it. Entry JSON