Skip to main content
When a command fails with --json, the error response includes a code field with an UPPER_SNAKE_CASE error code. Use this to handle errors programmatically.

Error response format

The CLI passes API error codes through verbatim, so a code you see in --json output is the code the API returned; the --json error envelope is the authority when this page and a message disagree. This page covers the codes you act on; the CLI also emits internal codes for transport, update, and checksum failures that are not listed here.

Error codes

Authentication

Deploy and build

Apps

GitHub

Services

Releases

Config and IO

Domains

Billing

Logs

Handling errors in agents

Exit codes