From 57304b008427c5009ec4017a59c2e9693c00d2ab Mon Sep 17 00:00:00 2001 From: dvir arad Date: Fri, 24 Jul 2026 15:35:27 +0300 Subject: [PATCH] docs(cli): document exit code 1 and clarify exit 0 semantics The Exit Codes table in the CLI reference only listed 0 and 2, but the CLI also exits with 1 on fatal errors (missing environment variables, Docker unavailable, invalid config file, diff-scope resolution failure, or an unhandled exception). It also implied exit 0 means no vulnerabilities were found, which is only true in headless mode - interactive runs always exit 0 regardless of findings. Document exit code 1 and clarify the two cases for exit 0. --- docs/usage/cli.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/usage/cli.mdx b/docs/usage/cli.mdx index 68f7d5ed..3b10f9de 100644 --- a/docs/usage/cli.mdx +++ b/docs/usage/cli.mdx @@ -116,5 +116,6 @@ strix --mount ./huge-monorepo | Code | Meaning | |------|---------| -| 0 | Scan completed, no vulnerabilities found | +| 0 | Scan completed successfully (interactive mode always exits `0`; in headless mode, `0` means no vulnerabilities were found) | +| 1 | A fatal error occurred before or during the scan (e.g. missing environment variables, Docker unavailable, invalid config file, diff-scope resolution failure, or an unhandled error) | | 2 | Vulnerabilities found (headless mode only) |