--- title: "CLI Reference" description: "Command-line options for Strix" --- ## Basic Usage ```bash strix --target [options] ``` ## Options Target to test. Accepts URLs, repositories, local directories, domains, or IP addresses. Can be specified multiple times. Custom instructions for the scan. Use for focus areas or specific testing approaches (e.g., "Focus on IDOR and auth bypass"). For credentials, use `--credentials` or `--credentials-file` instead. Path to a file containing detailed instructions. Comma-separated `KEY=VALUE` credential pairs kept out of the LLM conversation. Reference credentials by name in `--instruction` (e.g., `"Log in using USERNAME and PASSWORD"`). Example: `--credentials USERNAME=admin,PASSWORD=secret`. File values from `--credentials-file` load first; inline values override on key collision. Path to a JSON file of credential key-value pairs (e.g., `{"USERNAME": "admin"}`). Values are kept out of the LLM conversation. Inline `--credentials` values override file values on key collision. Scan depth: `quick`, `standard`, or `deep`. Code scope mode: `auto` (enable PR diff-scope in CI/headless runs), `diff` (force changed-files scope), or `full` (disable diff-scope). Target branch or commit to compare against (e.g., `origin/main`). Defaults to the repository's default branch. Run in headless mode without TUI. Ideal for CI/CD. Path to a custom config file (JSON) to use instead of `~/.strix/cli-config.json`. ## Examples ```bash # Basic scan strix --target https://example.com # Authenticated testing strix --target https://app.com \ --credentials USERNAME=user,PASSWORD=pass \ --instruction "Log in using USERNAME and PASSWORD, then test authenticated endpoints" # Focused testing strix --target api.example.com --instruction "Focus on IDOR and auth bypass" # CI/CD mode strix -n --target ./ --scan-mode quick # Force diff-scope against a specific base ref strix -n --target ./ --scan-mode quick --scope-mode diff --diff-base origin/main # Multi-target white-box testing strix -t https://github.com/org/app -t https://staging.example.com ``` ## Exit Codes | Code | Meaning | |------|---------| | 0 | Scan completed, no vulnerabilities found | | 2 | Vulnerabilities found (headless mode only) |