Manage the secrets in your app defined withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/anomalyco/sst/llms.txt
Use this file to discover all available pages before exploring further.
sst.Secret.
The --fallback flag can be used to manage the fallback values of a secret. Applies to all the sub-commands in sst secret.
Options
--fallback
Manage the fallback values of secrets.
Subcommands
sst secret set
Set the value of the secret.
The secrets are encrypted and stored in an S3 Bucket in your AWS account. They are also stored in the package of the functions using the secret.
If you are not running
sst dev, you’ll need to sst deploy to apply the secret.sst.Secret called StripeSecret to 123456789:
Arguments
The name of the secret.
The value of the secret. If not provided, you’ll be prompted to enter it.
Examples
Set a secret:Set fallback values for your PR stages.
sst secret remove
Remove a secret.
For example, remove the sst.Secret called StripeSecret:
Arguments
The name of the secret.
Examples
Remove a secret:sst secret list
Lists all the secrets.
Examples
List all secrets:sst secret load
Load all the secrets from a file and set them.
secrets.env
Arguments
The file to load secrets from.
Examples
Load secrets from a file:secret list command to get all the secrets from one stage and load them into another:
secret list outputs the secrets in the right format.
Related
- Secrets documentation - Learn more about how secrets work in SST