1 min read 100 words
Docs
CLI
Reference

hessian config context

CLI command reference

hessian config context

List or switch the active context

Synopsis

Manage the active Hessian context.

hessian config context lists configured contexts (a context maps to a section in ~/.hessian/credentials). The active context is marked with *.

hessian config context <name> switches the active context. The CLI then uses that context’s HESSIAN_API_HOST / HESSIAN_API_KEY / HESSIAN_TOKEN for subsequent commands.

hessian config context [name] [flags]

Options

Flag Type Description
-h, --help “ help for context

Options inherited from parent commands

Flag Type Description
--api_url string API URL (overrides the active context) (default “http://localhost:8000”)
--config string config file (default is $HOME/.hessian/config.yaml)
--debug “ Enable debug logging
-H, --header strings Add custom header(s) to requests (format: ‘Key: Value’). Can be repeated.
--json “ Output in JSON format (overrides —output)
--profile string Context profile to use (overrides current_context and HESSIAN_PROFILE)

See also

Last updated on 2-May-2026