Oriondocs
Get started
Docs›Reference›Node CLI

Node CLI

Every command for the orion-node on a Linux or macOS server.

Run orion-node --help for the grouped list. Output is plain text when piped, with --json, or with NO_COLOR=1. Exit codes: 0 ok, 1 failed checks or errors, 2 usage error, 3 needs elevation (run with sudo).

orion-node statusShow whether this host is reporting, what it is watching, and the next step.
FlagWhat it does
--shortOne line, for prompts and cron.
--watchRedraw live in place. q quits.
--jsonFlat, versioned JSON.
orion-node status
orion-node status --short
orion-node setupConnect this host and choose what to monitor. Optional: host metrics report without it.
FlagWhat it does
--core-url URLWhere your Core is.
--token-file PATHFile holding the one-time Add server token.
--accept-discoveredAdd every high-confidence suggestion.
--monitor IDAdd one suggestion, for example service:nginx. Repeatable.
--dry-runShow the config diff and change nothing.
--yesNever ask a question.
orion-node setup
orion-node setup --core-url https://core.example.com --token-file /secure/path/token --accept-discovered --yes
orion-node discoverSee what Orion found on this server and could monitor. On a terminal you can pick and add.
FlagWhat it does
--rescanLook again now and show what could not be scanned.
--dismissedList what you dismissed.
orion-node discover
orion-node discover ignore port:5432
orion-node discover restore port:5432
orion-node doctorCheck the Node, Core, discovery, logs and disk, and print the exact fix for anything wrong.

Exit code 1 when a check fails. --json lists each check with id, group, status, message and fix.

orion-node doctor
orion-node logsRead Node logs, or follow the logs shipped to Core in a full-screen viewer.
FlagWhat it does
--follow, -fFollow shipped logs live. ↑↓ move, enter details, p pause, l level, / search, q quits.
--lines NHow many entries to show.
--level warnOnly entries at or above a level.
--name nginxOnly logs from one configured source.
--search textOnly entries containing text.
--since 1hOnly entries from the last hour.
orion-node logs --follow --level warn
orion-node usageWhat apps on this host cost right now: CPU, memory, disk and network, measured from outside.
FlagWhat it does
--watchRedraw live in place. s sorts, q quits.
--window 3sTime between the two samples.
--top NRows shown.
orion-node usage --watch
orion-node configShow where settings come from, compare, validate and edit.
orion-node config show
orion-node config diff
orion-node config validate
orion-node config edit

edit opens your editor on a copy, checks it, shows what changed and asks before saving. The running Node reloads the new config.

orion-node start | stop | restartControl the service. Start and restart check config, state and permissions first.
sudo orion-node restart
sudo orion-node stop --yes

stop asks once on a terminal. --yes skips the question.

orion-node maintenanceMute alerts for a planned window. It always ends: 24 hours by default, 720 hours at most.
orion-node maintenance down "kernel upgrade" --for 2h
orion-node maintenance up

With no arguments on a terminal, down asks why and for how long.

orion-node updateUpdate safely: the download is verified, the old binary is kept, and a bad update rolls back by itself.
FlagWhat it does
--version X.Y.ZInstall a specific release.
--rollbackRestore the binary that was installed before the last update.
--forceReinstall even when already on the target version.
sudo orion-node update
sudo orion-node update --rollback
orion-node token applyApply a replacement token when the Node can no longer authenticate. Identity and monitors are kept.
orion-node token apply --token-file /secure/path/replacement-token
orion-node service restart
orion-node emitSend one log entry from your own script.
orion-node emit --severity error --event backup.failed "nightly backup failed"
orion-node run-jobRun a command, ship its output, and ping a heartbeat. The command's own output and exit code pass through.
orion-node run-job --name nightly-backup --heartbeat-token $TOKEN -- /usr/local/bin/backup.sh

One summary line on stderr: ✓ nightly-backup exit 0 · 41 s · 214 lines shipped · heartbeat ok.

orion-node reconfigureCreate a new local registration. Core will see this machine as a new server.
orion-node reconfigure --token-file /secure/path/add-server-token
Use reconfigure sparingly. It registers the machine as a new server instead of reusing its identity. It needs a fresh one-time Add server token from the Console.
Was this page helpful? Thanks, noted.