Skip to main content
When a command fails with --json, the error response carries an UPPER_SNAKE_CASE code field to branch on.

Error response format

The CLI passes API error codes through verbatim, so an API code in --json output is exactly what the API returned. When this page and a message disagree, the --json error envelope is the authority. 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