/

Exit Codes

Explains how the Preflight CLI handles exit codes


Introduced in Troubleshoot v0.63.0

When using preflight via the CLI, there are specific exit codes returned based on the outcomes of any checks.

Exit Codes

CodeDescription
0All tests passed, and no errors occurred
1Some error occurred (most likely not related to a specific preflight check), catch all
2Invalid input (CLI options, invalid Preflight spec, etc)
3At least one Preflight check resulted in a FAIL
4No Preflight checks failed, but at least one resulted in a WARN
Edit on GitHub