Config
geni config get
Print the effective config value the CLI is using right now.
geni config get [key] [flags]Prints the effective value the CLI would use right now, run through the same resolver chain as every other command (session-locked URL > env var > config file > compiled-in default). With no key, prints every settable key alongside its effective value.
Resolved values are real URLs, never a (default) placeholder, so the output always reflects what geni login would target or what geni credential connect would open.
Synopsis
geni config get # all keys, table
geni config get apiUrl # one value, bare
geni config get --json # all keys, JSON
geni config get apiUrl --json # one key, JSON| Arg / Flag | Notes |
|---|---|
[key] | One of apiUrl, dashboardUrl. Omit to list everything. |
--json | Machine-readable output. |
Output (no key)
KEY VALUE
apiUrl http://localhost:4111
dashboardUrl http://localhost:5177Output (one key)
http://localhost:4111Output (--json, no key)
{
"apiUrl": "http://localhost:4111",
"dashboardUrl": "http://localhost:5177"
}Output (--json, one key)
{
"apiUrl": "http://localhost:4111"
}Distinguishing "explicit vs default"
get always returns the resolved URL, so it doesn't tell you whether a value came from the config file vs. the env var vs. the compiled-in default. To see what's explicitly written, read the file directly:
cat $(geni config path)Exit codes
| Code | Meaning |
|---|---|
0 | Returned |
2 | Unknown key |
125 | Couldn't read the file |