Skip to main content

Global flags and environment variables

These work on (almost) every command:

FlagEnvPurpose
--config <path>ONMSCTL_CONFIGConfig file path
--context <name>ONMSCTL_CONTEXTActive context
--url <url>ONMS_URLServer URL override
--user <name>ONMS_USERBasic-auth username override
--read-onlyONMSCTL_READ_ONLYRefuse write verbs locally
-o, --output <fmt>table (default), yaml, or json
--insecure-tlsSkip TLS verification (avoid in prod)
-v, --verboseFull error chains + extra diagnostics
ONMS_PASSWORD / ONMS_TOKENHighest-priority credential source

apply adds -f/--filename, --dry-run, --diff, --continue-on-error (alias --keep-going), and -R/--recursive.

Override precedence, highest wins:

flags > environment > active context > built-in default

Top-level verbs have short aliases; see Verb aliases.