General Input
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 / FlagNotes
[key]One of apiUrl, dashboardUrl. Omit to list everything.
--jsonMachine-readable output.

Output (no key)

KEY           VALUE
apiUrl        http://localhost:4111
dashboardUrl  http://localhost:5177

Output (one key)

http://localhost:4111

Output (--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

CodeMeaning
0Returned
2Unknown key
125Couldn't read the file

On this page