CLI command reference
Add or replace a header on a profile
Add a header to a profile. If the profile already has a header with the same name, it is replaced (header names are case-insensitive). Use —profile to target a profile other than the active one.
Example:
hessian config header add “CF-Access-Client-Id: 1234.access” —profile nonprod hessian config header add “CF-Access-Client-Secret: hunter2” —profile nonprod
hessian config header add <Header-Name: value> [flags]| Flag | Type | Description |
|---|---|---|
-h, --help | “ | help for add |
--profile | string | Target profile (defaults to the active context) |
| 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) |