Skip to the page

rykloud exit-codes

What each exit code means, for scripts

Exit codes are stable within a major version of rykloud.

   0  done
   1  failed (or you answered no at a prompt)
   2  used wrongly: an unknown flag, a missing argument or confirmation
   3  not signed in, or the session ended: run rykloud auth login
   4  not found (or not yours to see)
   5  refused by a rule: a role, a limit, the payment gate, a protected resource;
      retrying will not help
   6  waiting for a person: a change or plan needs an approval you cannot give
   7  cannot reach Rykloud (network, address, timeout)
   8  Rykloud failed or is busy; retrying may help
  10  rykloud diff --exit-code found differences
 130  interrupted (Ctrl+C)

With -o json, an error is one JSON line on stderr:

  {"error":{"code":"refused","message":"...","exitCode":5}}

Every command also takes the global flags.