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.
| Flag | What it does |
|---|---|
--short | One line, for prompts and cron. |
--watch | Redraw live in place. q quits. |
--json | Flat, versioned JSON. |
orion-node status
orion-node status --shortorion-node setupConnect this host and choose what to monitor. Optional: host metrics report without it.
| Flag | What it does |
|---|---|
--core-url URL | Where your Core is. |
--token-file PATH | File holding the one-time Add server token. |
--accept-discovered | Add every high-confidence suggestion. |
--monitor ID | Add one suggestion, for example service:nginx. Repeatable. |
--dry-run | Show the config diff and change nothing. |
--yes | Never ask a question. |
orion-node setup
orion-node setup --core-url https://core.example.com --token-file /secure/path/token --accept-discovered --yesorion-node discoverSee what Orion found on this server and could monitor. On a terminal you can pick and add.
| Flag | What it does |
|---|---|
--rescan | Look again now and show what could not be scanned. |
--dismissed | List what you dismissed. |
orion-node discover
orion-node discover ignore port:5432
orion-node discover restore port:5432orion-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 doctororion-node logsRead Node logs, or follow the logs shipped to Core in a full-screen viewer.
| Flag | What it does |
|---|---|
--follow, -f | Follow shipped logs live. ↑↓ move, enter details, p pause, l level, / search, q quits. |
--lines N | How many entries to show. |
--level warn | Only entries at or above a level. |
--name nginx | Only logs from one configured source. |
--search text | Only entries containing text. |
--since 1h | Only entries from the last hour. |
orion-node logs --follow --level warnorion-node usageWhat apps on this host cost right now: CPU, memory, disk and network, measured from outside.
| Flag | What it does |
|---|---|
--watch | Redraw live in place. s sorts, q quits. |
--window 3s | Time between the two samples. |
--top N | Rows shown. |
orion-node usage --watchorion-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 editedit 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 --yesstop 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 upWith 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.
| Flag | What it does |
|---|---|
--version X.Y.Z | Install a specific release. |
--rollback | Restore the binary that was installed before the last update. |
--force | Reinstall even when already on the target version. |
sudo orion-node update
sudo orion-node update --rollbackorion-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 restartorion-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.shOne 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-tokenUse 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.