Skip to content

Exit codes

Use the exit code to pass or fail a shell or CI step.

CodeMeaning
0Success, including non-gated warnings
1Validation failure, or --fail-on-warnings tripped. The import was rolled back.
2Unexpected error: auth, transport, or usage

A typical CI guard:

sf sliick docs import templates/ --target-org prod --fail-on-warnings || exit 1