Exit Codes¶
See also CLI Contract for the broader compatibility promise.
pi-doctor check uses impact-based exit codes:
0: healthy1: warning2: degraded3: critical4: internal error
Notes:
explain,doctor,support-bundle, andcompletionsreturn0on success.- Internal CLI failures return
4. criticalis used for release-blocking conditions such as active firmware throttling or temperatures in the likely-throttling range.- Exit codes are the stable machine-facing summary for
check, but automation that needs detail should preferpi-doctor check --json.