Skip to content

Exit codes ​

CodeNameMeaning
0okThe command finished. With --fail-on, nothing matched.
1errorThe command failed: a read, a write, a child process or a check failed.
2usageWrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal.
3findingsA --fail-on gate matched. The report is still written.
4authCredentials were missing or rejected for every source the command needed.
130interruptedInterrupted by Ctrl-C (SIGINT) or a cancelled context.

When more than one applies, the first error decides the code. A --fail-on match (3) is reported after the report is written.

Per command ​

CommandExit codes
relgap audit0, 1, 2, 3, 4, 130
relgap cache clear0, 1, 2, 130
relgap cache info0, 1, 2, 130
relgap cache prune0, 1, 2, 130
relgap config init0, 1, 2, 130
relgap config path0, 1, 2, 130
relgap config show0, 1, 2, 130
relgap config validate0, 1, 2, 130
relgap digest0, 1, 2, 3, 4, 130
relgap drift0, 1, 2, 3, 4, 130
relgap mcp0, 1, 2, 130
relgap notify0, 1, 2, 4, 130
relgap outdated0, 1, 2, 3, 4, 130
relgap pins0, 1, 2, 130
relgap registry lint0, 1, 2, 130
relgap registry test0, 1, 2, 4, 130
relgap registry update0, 1, 2, 4, 130
relgap resolve0, 1, 2, 130
relgap version0, 1, 2, 130