General Input
Config

geni config unset

Remove a key from the persistent CLI config.

geni config unset <key>

Removes a key from the config file. The resolver falls back through the precedence chain afterwards (env var → compiled-in default), so unsetting apiUrl doesn't leave the CLI broken; it just goes back to whatever the next layer says.

When unsetting the last remaining key, the file is deleted entirely instead of leaving an empty config behind. Same observable behavior, less file-system noise.

Synopsis

geni config unset apiUrl
geni config unset dashboardUrl
ArgNotes
<key>One of apiUrl, dashboardUrl. See config overview for what each controls.

Output

✓ Unset apiUrl.

If the key wasn't set, no-op:

✓ apiUrl was already unset.

Exit codes

CodeMeaning
0Removed (or already unset)
2Unknown key
125Couldn't write or delete the file

On this page