The CLI does not assign stable numeric codes to individual error categories. Read stderr and, when available, structured stdout.
Important behaviors
- A validation command can write structured validation details and still exit
1when the input is invalid. run watch --max-waitexits1if the wait limit is reached before a terminal status.doctorcan exit0while reportinghealthy: falseand a credential action. Inspect its JSON fields instead of relying only on$?.--output jsondoes not guarantee that every CLI-generated error is emitted as JSON; errors are written to stderr.