Shortest commands
Selectors
| Selector | Meaning |
|---|---|
--all | Every node in state.toml (and the proxy, if installed) |
--node N | Just node N. Repeat for multiple: --node 0 --node 2 |
--shard <0|1|2|metachain> | Every node assigned to that shard |
--validators-only | All validator-role nodes |
--observers-only | All observer- and multikey-role nodes |
--select '<expr>' | Free-form: role=validator AND shard=0 |
Start / stop / restart
start maps to systemctl enable --now <unit>, stop to systemctl stop, restart to a stop+start cycle.
Restart strategy
| Flag | Default | Effect |
|---|---|---|
--strategy rolling|parallel | rolling | Rolling: one at a time, wait for is-active. Parallel: up to --max-parallel concurrent. |
--max-parallel N | 1 | Cap when --strategy parallel. |
Status
Options
| Flag | Default | Effect |
|---|---|---|
--watch | off | Repaint until Ctrl+C. |
--interval <SECS> | 5 | Refresh interval with --watch. |
--format table|json | table | Output shape. |
Logs
Options
| Flag | Default | Effect |
|---|---|---|
--node N | required | Node index. Repeatable for combined stream. |
--follow | off | Tail new lines. Conflicts with --save-archive. |
--since <SPEC> | none | Anything journalctl --since accepts (1h, 30min, 2024-01-01). |
--save-archive | off | Tarball logs from every node into <custom_home>/mx-chain-logs/. |
Dashboard
ratatui). Press q to quit.
Options
| Flag | Default | Effect |
|---|---|---|
--node N | all | Limit to a subset (repeatable). |
--interval <ms> | 1000 | REST poll cadence per node. |
--host <H> | 127.0.0.1 | Override the host the dashboard talks to. |
--ws-logs | off | Stream logs via the node’s /log WebSocket instead of tailing the file. |
Metrics
What gets recorded
| Action | Recorded where |
|---|---|
| Every state-changing op | ~/.local/state/mxnode/state.toml |
| In-flight upgrades | ~/.local/state/mxnode/inflight.toml (cleared on completion or auto-cleared on next run) |
| Migration audit log | state.toml migrations.entries[] |

