Skip to main content
Set secrets for your project. Secrets are available to your backend functions as environment variables via Deno.env.get(). When you set a secret, any deployed backend functions that reference it are automatically redeployed with the new value. If a secret with the same name already exists, its value is overwritten. You can provide secrets as inline KEY=VALUE pairs or load them from an .env file.

Usage

Set one or more secrets inline, separated by spaces:
base44 secrets set <KEY=VALUE...>
Or load from an .env file:
base44 secrets set --env-file <path>
You cannot combine inline KEY=VALUE pairs with --env-file in the same command.

Arguments

ArgumentDescriptionRequired
<KEY=VALUE...>One or more KEY=VALUE pairs, separated by spacesYes (unless using --env-file)

Flags

FlagDescription
--env-file <path>Path to a .env file containing KEY=VALUE pairs

Example

base44 secrets set API_KEY=sk-abc123 DATABASE_URL=postgres://localhost/mydb

See also