CLI Reference
Command
Section titled “Command”harnix scan [path]pathis optional and defaults to..scanis the current command.
--verbose
Section titled “--verbose”Include inline rationale per check in terminal output.
harnix scan . --verbose--output <path>
Section titled “--output <path>”Write report files to a custom output directory.
harnix scan . --output ./reports/harnixAlso supported:
harnix scan . --output=./reports/harnix--skip <check-id>
Section titled “--skip <check-id>”Skip one or more checks.
harnix scan . --skip agents-md,ci-pipelineharnix scan . --skip agents-md --skip ci-pipeline--only <check-id>
Section titled “--only <check-id>”Run only the specified checks.
harnix scan . --only agents-mdharnix scan . --only agents-md,root-readme,documentation--skip and --only are mutually exclusive.
--type <software|non-software>
Section titled “--type <software|non-software>”Override repository type detection.
harnix scan . --type softwareharnix scan . --type non-software--depth <n>
Section titled “--depth <n>”Limit recursive scanning of submodules/workspaces by depth.
0scans only the target repository.1scans the target plus direct submodules/workspaces.2includes one additional nested level, and so on.- If omitted, depth is unlimited (current behavior).
harnix scan . --depth 0harnix scan . --depth 1harnix scan . --depth=2Exit codes
Section titled “Exit codes”Harnix uses the following exit codes to indicate scan outcomes:
0— scan completed successfully, regardless of scores1— an error occurred (invalid arguments, missing directory, malformed config file)
The exit code does not reflect the scan score. A repository scoring 0% still exits with code 0 because the scan itself succeeded. This design makes Harnix safe to use in CI pipelines where you want to capture results without failing the build on low scores.
Display the top-level help text with available commands:
harnix --helpDisplay scan-specific help with all flags and arguments:
harnix scan --helpVersion
Section titled “Version”Print the installed Harnix version:
harnix --version