mirror of
https://github.com/hanzoskill/homey.git
synced 2026-10-30 21:10:06 +00:00
505 B
505 B
Errors and exit codes
When --json is set, errors are printed as JSON to stdout:
{ "error": { "code": "AMBIGUOUS", "message": "...", "details": { "candidates": [ ... ] } } }
When --json is not set, errors go to stderr in a Unix-style format (including the error code when available).
Exit codes
0success2configuration/auth error (e.g. no token)3not found4ambiguous match (use an ID)5invalid value / capability not supported1generic/unexpected