Documentation
ReferenceCLICommandssecrets

secrets

Set and remove the secrets of an Edge Function, and pull their values into a local env file.

Secrets belong to one Edge Function, so every command takes --function. Saving or removing a secret redeploys the function with the new value.

secrets list

nulvless secrets list --function <slug>

Lists secret names. Values are never shown.


secrets set

nulvless secrets set <KEY[=VALUE]> --function <slug>

Creates or updates a secret. Without a value it asks for one without echoing it, so it stays out of your shell history. Outside a terminal, pass KEY=VALUE.

nulvless secrets set STRIPE_SECRET_KEY --function checkout
<KEY[=VALUE]>Required

Secret name, optionally with its value. Names starting with NULVLESS_ or NVL_, and EDGE_REGION, are reserved.

-f, --function <slug>Required

Function the secret belongs to.


secrets unset

nulvless secrets unset <KEY> --function <slug>

Removes a secret.


secrets pull

nulvless secrets pull --function <slug> [--output <file>]

Writes the values into an env file readable only by you, so you can run the function locally. Values are never printed.

-f, --function <slug>Required

Function the secrets belong to.

-o, --output <file>

File to write. Defaults to .env.local in the function folder, which the workspace keeps out of git.

On this page