Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Global flags

Every orion-cli command accepts the same global flags. Settings resolve in precedence order: CLI flags, then environment variables, then ~/.orion/config.toml.

Synopsis

orion-cli [global flags] <command> [subcommand] [args] [flags]

Options

FlagDescription
--server <url>Orion server URL. Overrides the config file and ORION_SERVER_URL.
--api-key <key>API key for admin authentication. Falls back to ORION_API_KEY, then the api_key in ~/.orion/config.toml. When the key would travel over plain http:// to any host but the local machine, a warning is printed to stderr — use https:// for a remote server.
--api-key-header <name>Header name carrying the key. Default: Authorization with a Bearer prefix.
--change-context <ctx>Audit label for this change, for example ticket=OPS-4412. Sent as X-Orion-Change-Context and recorded under details.change_context on every audit row the command writes. Also read from ORION_CHANGE_CONTEXT.
--output <format>Output format: table (default), json, or yaml.
--quietPrint only IDs or minimal info.
--verboseShow full response bodies and extra details.
--no-colorDisable colored output.
--yesSkip confirmation prompts.

Paging and sorting

Every list pages: 50 rows by default, 1000 at most. The count under the table says Showing 50 of 3120 … when the page is short of the total, so a truncated listing never reads as a complete one.

FlagApplies toDescription
--limit <n>every list, and workflows/channels versionsPage size, clamped to 1–1000.
--offset <n>as aboveRows to skip.
--sort-by <col>workflows, channels, connectors, tracesColumn to order by. The accepted columns differ per resource; see each command below.
--sort-order <dir>as aboveasc or desc. Defaults to desc for the versioned lists (ordered by priority) and asc for connectors (ordered by name).

Environment variables

VariableRead byPurpose
ORION_SERVER_URLorion-cliServer URL when --server is not given.
ORION_API_KEYorion-cliAdmin API key when --api-key is not given.
ORION_API_KEY_HEADERorion-cliHeader name carrying the key.
ORION_CHANGE_CONTEXTorion-cliAudit change context when --change-context is not given.
NO_COLORorion-cliDisables colored output, like --no-color.

ORION_SECTION__KEY variables belong to the server, not the client; see Environment variables.

Last verified 14 September 2026