Skip to content

ezgh auth set-api-key

Store an API key as the profile's credential, read from stdin.

Updated View as Markdown
ezgh auth set-api-key [flags]

Store an API key (ezgh_…) as the profile’s credential, in place of a login. The key is read from stdin, never from an argument (arguments end up in shell history and process lists):

ezgh auth set-api-key --profile ci < key.txt
ezgh auth set-api-key --profile ci          (then paste it; it isn't echoed)

The key is checked with EZGH Cloud before it’s stored, unless --no-verify. EZGH_API_KEY, when set, still wins over it.

Part of ezgh auth.

Flags

Flag Type Default Description
--no-verify boolean store the key without checking it with EZGH Cloud

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close