Exit Codes
Documented from tag v0.3.0.
| Code | Meaning |
|---|---|
0 | Success. For plan, no changes. For apply, planned mutations finished (including a zero-change apply). For validate and import, the command succeeded. |
1 | Runtime, validation, or provider failure, including failed planning, apply, or import. Incomplete apply still exits 1. |
2 | plan succeeded and resource or provider actions are present. Intended for CI/GitOps workflows. |
3 | Invalid CLI usage (wrong arguments, unknown flag, or unknown command). |
validate and apply do not use exit code 2.