Skip to content

Exit Codes

Documented from tag v0.3.0.

CodeMeaning
0Success. For plan, no changes. For apply, planned mutations finished (including a zero-change apply). For validate and import, the command succeeded.
1Runtime, validation, or provider failure, including failed planning, apply, or import. Incomplete apply still exits 1.
2plan succeeded and resource or provider actions are present. Intended for CI/GitOps workflows.
3Invalid CLI usage (wrong arguments, unknown flag, or unknown command).

validate and apply do not use exit code 2.