Skip to main content

Get

Show one setting in full.

It shows the value in effect and where it came from, the environment variable, the type, the default, the rules and the description. An environment variable wins over the file.

osapi config get [flags]

Examples​

osapi config get --key controller.api.port
osapi config get --key agent.labels -f ./osapi.yaml --json

Flags​

FlagDescriptionDefault
--keyThe setting to show, such as controller.api.port (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.