Skip to content

Output, errors & exit codes

Human output

Pretty text by default (tables / checkmarks). Set NO_COLOR=1 to disable ANSI.

JSON envelope

bash
awsutopia list --json

Success:

json
{ "ok": true, "data": { } }

Failure:

json
{
  "ok": false,
  "error": {
    "code": "NO_PROJECT",
    "message": "…",
    "hint": "…"
  }
}

Errors always include { code, message, hint } — enough to fix it without guessing. Hint may be omitted only for unexpected DEBUG stacks.

Exit codes

CodeMeaning
0Success
1Generic / runtime
2Usage / validation
3Auth / credentials
4Not found
5Denied / confirmation declined

DEBUG=1 prints stack traces (hidden by default).

Working name — your AWS account, your bill.