Skip to content

Secret commands: revoke, rotate, store

The Secret Verbs revoke, rotate, store as CLI commands, with inputs, result, refusals and an example.

Reference for Secret, one group of Secret commands.

Secret.revoke

Revoke ends a Secret so no call fills it again; the record and its history stay. Verb page.

Text
npx startup-builder do Secret.revoke --json '<input>' [--try | --send | --do]

Emits Secret.revoked.

Inputs

InputTypeRequiredDescription
secretSecretrequiredThe Secret to revoke.
reasontextWhy, such as a leaked value.

Returns

OutputTypeRequiredDescription
secretSecretrequiredThe revoked Secret.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Secret.revoke --json '{"secret":"secret_UaNXUkKsJB"}'

Secret.rotate

Rotate replaces a Secret’s value, and calls already running finish on the old one. Verb page.

Text
npx startup-builder do Secret.rotate --json '<input>' [--try | --send | --do]

Emits Secret.rotated.

Inputs

InputTypeRequiredDescription
secretSecretrequiredThe Secret to rotate.
valuestringThe new value; omitted when the upstream issues one.

Returns

OutputTypeRequiredDescription
secretSecretrequiredThe Secret, with its new rotatedAt.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Secret.rotate --json '{"secret":"secret_UaNXUkKsJB"}'

Secret.store

Store writes a Secret’s value for one environment; the value is never returned by any Interface. Verb page.

Text
npx startup-builder do Secret.store --json '<input>' [--try | --send | --do]

Emits Secret.stored.

Inputs

InputTypeRequiredDescription
namestringrequiredThe name Functions declare.
valuestringrequiredThe credential; write-only.
environmentstringrequiredWhere it holds.

Returns

OutputTypeRequiredDescription
secretSecretrequiredThe Secret, without its value.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Secret.store --json '{"name":"MAPS_KEY","value":"Example value","environment":"test"}'