Skip to main content
The CLI uses a small, deliberate set of exit codes so it composes cleanly in shell pipelines and CI. Errors print the HTTP status and parsed response body to stderr. Stdout stays clean, so you can pipe successful runs into jq without filtering noise.

Examples

CI: fail the build on errors

The step fails automatically if the upload returns a non-2xx; no extra check needed.

Distinguishing client vs. server errors

For one bit (0 / 1) the CLI returns, the body on stderr carries the detail. Parse it programmatically with 2> redirection if you need to branch on the HTTP status: