Skip to main content

Exit Codes

cfv check​

CodeMeaning
0All files pass: valid syntax, schema correct, properly formatted
1One or more files failed (syntax error, schema violation, or formatting issue)
2Runtime or configuration error (invalid flags, unreadable files, bad .cfv.toml)

cfv format​

CodeMeaning
0All files are already formatted correctly
1One or more files need formatting changes
2Runtime or configuration error

Usage in CI​

Use exit code 1 as your CI gate. A non-zero exit means something needs attention.

Exit code 2 indicates a problem with the invocation itself, not with the files being checked.