Manage product secrets and production vault keys
clanker vault secret generate
Generate a value on the server for each selected environment
clanker vault secret generate [options]
Arguments
This command takes no arguments.
Options
--workspace <slug>stringWorkspace slug or id (default: the linked workspace)
--product <slug>stringRequiredProduct (repeatable)
Defaults to
--env <slug>stringRequiredEnvironment (repeatable)
Defaults to
--name <name>stringRequiredThe secret's name, such as SESSION_SECRET
--type <type>stringRequiredtoken, password, uuid or ed25519
--bytes <count>stringtoken: random bytes, 16 to 512 (default 32)
--encoding <encoding>stringtoken: hex, base64 or base64url (default hex)
--length <count>stringpassword: characters, 8 to 256 (default 32)
--no-lowercaseflagpassword: leave out a-z
--no-uppercaseflagpassword: leave out A-Z
--no-digitsflagpassword: leave out 0-9
--no-symbolsflagpassword: leave out -_.~+=
--showflagPrint each generated value once
--request-id <id>stringReuse this ID when retrying a write
Examples
clanker vault secret generate --product storefront --env staging --env production --name SESSION_SECRET --type token