Skip to content

Exit codes

Every exit code also tells you whether the server changed.

Code Meaning Server changed
0 Done, or nothing to do maybe: that was the point
1 Stopped part-way yes, partly
2 Usage or config problem no
3 Login refused (never retried) no
4 Server identity not confirmed no
5 Server unreachable no
6 Stopped by a safety net no
130 Interrupted (Ctrl-C) maybe: see the last line
  • 0: fine.
  • 2 to 6: nothing changed; fix the cause first.
  • 1: run the same command again.
  • 130: read the last line, then run again.

--json prints one JSON object on stdout with the same facts: the status, what changed, and the error with its fix lines.