Skip to main content

targon auth

Manage API credentials for the active profile.

targon auth <COMMAND>

targon auth login

Store an API key for the active profile. Prompts for the key on stdin (hidden input).

targon auth login

Use --profile to target a non-default profile:

targon auth login --profile staging

Requires an interactive terminal.

targon auth logout

Remove the stored API key for the active profile.

targon auth logout

targon auth status

Show authentication status for the active profile, including base URL and whether a key is set.

targon auth status

If TARGON_API_KEY is set in the environment, status reports that the key comes from the environment variable rather than the credentials file.