Skip to main content

kernel login

Log in with OAuth 2.0 PKCE. The CLI opens a browser window to complete the flow and stores credentials securely for automatic refresh.

kernel logout

Clear stored credentials and revoke the current session.

kernel auth

Display authentication status, including the active user, organization, and token expiry.

API key authentication

Set the KERNEL_API_KEY environment variable to authenticate without OAuth:
Create and manage API keys from the Kernel dashboard or with kernel api-keys.
The CLI authenticates with kernel login or KERNEL_API_KEY. It doesn’t exchange workload identity tokens. For a CI job or a cloud service that calls KERNEL through an SDK, use workload identity federation instead of storing an API key.

Global flags

The following flags are available on every CLI command:

Getting help

  • kernel --help — Show the top-level command list.
  • kernel <command> --help — Display command-specific usage and options.