Search the docs

Search guides, API endpoints and MCP tools.

Manage product secrets and production vault keys

clanker vault secret set

Set a secret's value, read from stdin, in each product and environment given, creating the name where it is missing

clanker vault secret set [options]

Arguments

This command takes no arguments.

Options

--workspace <slug>string

Workspace slug or id (default: the linked workspace)

--product <slug>stringRequired

Product (repeatable)

Defaults to
--env <slug>stringRequired

Environment (repeatable)

Defaults to
--name <name>stringRequired

The secret's name, such as DATABASE_URL

--clearflag

Clear the value instead of reading one from stdin

--request-id <id>string

Reuse this ID when retrying a write

Examples
printf %s "$DATABASE_URL" | clanker vault secret set --product storefront --env staging --name DATABASE_URL