Skip to content

ezgh iam api-keys create

Create an API key for yourself or a bot; the key is shown once.

Updated View as Markdown
ezgh iam api-keys create <name> [--bot b] [--expires-in-days n] [flags]

Create an API key that acts as you, or with --bot as one of the organization’s bots, with exactly its owner’s access. The key is printed once, on stdout, and can’t be shown again:

export EZGH_API_KEY=$(ezgh iam api-keys create ci --bot deployer --expires-in-days 90)

API keys can’t create API keys: this needs a login (ezgh login).

Part of ezgh iam api-keys.

Flags

Flag Type Default Description
--bot string create the key for this bot (ID, slug or name) instead of yourself
--expires-in-days int expire the key after 1 to 365 days (default: never)

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close