Search the docs

Search guides, API endpoints and MCP tools.

Manage product secrets and production vault keys

clanker vault secret restore

Restore an earlier version as the newest one

clanker vault secret restore [options] <version>

Arguments

<version>stringRequired

The version to restore, from clanker vault secret history

Options

--workspace <slug>string

Workspace slug or id (default: the linked workspace)

--product <slug>stringRequired

The product, such as storefront

--name <name>stringRequired

The secret's name, such as DATABASE_URL

--env <slug>stringRequired

The environment, such as staging

--request-id <id>string

Reuse this ID when retrying a write

Examples
clanker vault secret restore 3 --product storefront --name DATABASE_URL --env staging