Skip to main content

Synopsis

Create an API key for a service account, or a personal API key for yourself. The key value is only returned once, at creation time, so make sure to store it securely. Every API key expires. Without --expires-at the key is given the maximum allowed lifetime, and an --expires-at beyond that maximum is capped to it. With --personal, a key created using another API key is revoked along with that key, and expires no later than it.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on October 29, 2026