Skip to main content

Config file

By default, HEVN CLI stores local configuration at:
Override the config path with:
The config file is written with restrictive file permissions when possible.

Environments

Select an environment globally:
Or per command:
Built-in environments: You can also override URLs directly:

API keys

The preferred interactive auth path is:
This saves:
  • api_key
  • api_key_header
  • base_url, when returned by the login callback
For automation, either save a key directly:
or set credentials through environment variables:
Authorization mode adds a Bearer prefix automatically when the key does not already start with one. Use X-Api-Key only when your backend deployment requires that header:
The CLI no longer uses HEVN_APP_ID; transfer endpoints derive the owning app from the API key.

Output formats

Human output is optimized for terminal use with Rich tables and panels. For scripts and agents, prefer JSON or YAML. You can set output globally:
or per command:
Structured success output is wrapped as ok, data, meta, and warnings. Structured error output is wrapped as ok, errorCode, errorType, error, and exitCode.

Automation controls

Use non-interactive mode to refuse prompts and return structured INTERACTIVE_REQUIRED errors when a required flag is missing:
Use dry-run mode to preflight mutating HTTP calls without sending the request:
Inspect the full CLI contract for agents and scripts:

Debugging

Use --debug to include invocation and curl details in error output:
Or set:
Debug output can include sensitive headers and request payloads. Avoid sharing raw debug logs without redaction.