CLI command reference
Create a new context
Create a new Hessian context (a named bundle of API host + credentials).
The api_url is required. The api_key is optional — if you’d rather use OAuth,
omit it and run hessian login --profile <name> afterwards to populate
HESSIAN_TOKEN.
hessian config add-context <name> [flags]| Flag | Type | Description |
|---|---|---|
--api_key | string | API key for this context (optional; alternatively use OAuth via ‘hessian login’, which populates HESSIAN_TOKEN) |
--api_url | string | API URL for this context (e.g. https://api.dev-hessian.sh) |
--force | “ | Overwrite an existing profile with the same name |
-h, --help | “ | help for add-context |
| Flag | Type | Description |
|---|---|---|
--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) |