Exit codes
For scripting and CI:
| Code | Meaning |
|---|---|
0 | Success |
1 | Usage error (bad flags, not a Rails app) |
2 | Auth error (not logged in, expired token) |
3 | Server error (build failed, deploy failed) |
4 | Config error (not initialized) |
5 | Timeout |
130 | Cancelled (Ctrl-C) |
# CI example
hadoken deploy --yes --timeout 10m
if [ $? -eq 3 ]; then echo "Deploy failed"; fi