Config
geni config set
Write a value to the persistent CLI config.
geni config set <key> <value>Writes a config value. Validates the value against the config schema, malformed URLs fail loudly here rather than waiting for the next CLI command to crash on them.
Synopsis
geni config set apiUrl http://localhost:4111
geni config set dashboardUrl http://localhost:5177| Arg | Notes |
|---|---|
<key> | One of apiUrl, dashboardUrl. See config overview for what each controls. |
<value> | New value. URL keys (apiUrl, dashboardUrl) must be valid http:// or https:// URLs. |
Output
✓ Set apiUrl = http://localhost:4111If you're already logged into a different API URL, set warns:
✓ Set apiUrl = http://localhost:4111
! Active session is bound to https://cloud.generalinput.com, not the new http://localhost:4111. Run `geni logout && geni login` to switch.The runner-session token is bound to the URL it was minted against, so existing commands keep targeting the original server. To actually switch, log out and back in (see config overview).
Exit codes
| Code | Meaning |
|---|---|
0 | Written |
2 | Unknown key or invalid value |
125 | Couldn't write the file (filesystem permission, missing parent dir, etc) |