Skip to content

Exit codes and output

Code Means
0 done, and complete
1 could not run: nothing was read or produced
2 drift (diff), or a sync where the cluster still differs
3 no drift, or a scan or export worked, but something stayed unchecked
64 the command line was wrong
77 this early access release has ended
130 interrupted

The answer goes to stdout, everything else to stderr. With -o json, errors are JSON too: {"error": {"reason": "...", "message": "..."}}.

Colours appear only on a terminal. NO_COLOR=1 or --no-color turns them off.