Skip to content
sproutboat
Esc
navigateopen⌘Jpreview
On this page

Secrets

Values set out of band with the CLI, never in sproutboat.jsonc, read as a plain string.

Configuration

"secrets": ["STRIPE_KEY"]

Only the binding name goes in the config. The value is set separately with the CLI, never committed:

echo -n "$VALUE" | bunx sproutboat secrets put STRIPE_KEY
# Or, when shell history is not a concern:
bunx sproutboat secrets put STRIPE_KEY --value sk_test_example
echo -n "$VALUE" | npx sproutboat secrets put STRIPE_KEY
# Or, when shell history is not a concern:
npx sproutboat secrets put STRIPE_KEY --value sk_test_example

Usage

env.STRIPE_KEY // -> plain string

Was this page helpful?