Skip to content

griz create apikey

Creates an API Key. For a full list of available flags, see the API Key Documentation.

Note

When passing in text on the command line, we recommend encasing it in quotes (ie "Secret Message"). Command line arguments are parsed by the shell in their own way, and special characters could cause them to be interpreted differently than expected.

Flags

flag Description
--flag The entitlements on the API Key. This flag can be used multiple times.
--file A file containing entitlements. One entitlement per line

Examples

# Creates an API Key for the DevOps Account with the encrypt, decrypt, and read access
griz create apikey DevOps --flag "keyring.devops.encrypt" --flag "keyring.devops.decrypt" --flag "keyring.devops.read"

# Creates an API Key for the DevOps Account with the entitlements in ./flags.txt
griz create apikey DevOps --file ./flags.txt

Flags File Example

keyring.default.read
keyring.*.write
account.write
account.read
keyring.*.encrypt