scandrix command-line interface provides developers and CI/CD pipelines with local access to the AST parsing engine, custom rules, interactive Bubble Tea TUI, and review pipeline.
Global flags
All commands accept the following persistent flags:scandrix auth login
Authenticate the local developer terminal with your ScanDrix account:
- Uses interactive browser device/loopback authorization.
- Stores credentials locally in
~/.scandrix/credentials.json(0600permissions).
scandrix review
Run a code review on working tree changes, staged diffs, branches, commits, or patch files:
Exit codes
0: Clean review, or findings remain below--fail-on.1: Findings meet or exceed the--fail-onseverity threshold (info,warning,error,critical).2/ non-zero error: Network, authentication, or parsing error.
scandrix rules
Manage and validate custom Drixy rules:
scandrix dry-run
Preview review rules locally without posting PR comments or updating cloud state (exitCode = 0):
