Package: @securaro/cli (packages/cli, binary securaro).
Install
| Method | Command / image |
|---|---|
| npm | npm install -g @securaro/[email protected] |
| Docker | ghcr.io/muralipdl527/securaro-cli:1.0.0 (also securaro/cli:1.0.0) |
| Binary | Release assets in public/tools/manifest.json (e.g. securaro-linux-x64) |
No config file — use flags and environment variables only.
Authenticate (hosted scans)
export SECURARO_API_URL="https://your-tenant.example"
export SECURARO_API_KEY="sec_…"
export SECURARO_APP="storefront"
export SECURARO_VERSION="main"
Commands
| Command | Purpose |
|---|---|
securaro scan | Hosted scan + gate + optional local reports |
securaro fix -f <findingId> | AI fix draft / narrative via API |
securaro relay export | Export tracker config |
securaro codrael scan -p <path> | Local Codrael only (no portal) |
securaro scan flags
Sourced from packages/cli/src/scan-options.ts (parity-tested in CI):
| Flag | Env fallback | Description |
|---|---|---|
--type, -t | — | sast, sca, dast, ai, logic-audit, mobile, all |
--depth, -d | — | quick or deep |
--app, -a / --project, -p | SECURARO_APP, SECURARO_PROJECT | App slug |
--version, -v | SECURARO_VERSION | Version slug |
--api | SECURARO_API_URL | Portal base URL |
--token | SECURARO_API_KEY | API bearer token |
--fail-on | — | Gate severity: critical…info (default high) |
--new-only | — | Gate on new vs baseline |
--baseline-ref, --diff-base | SECURARO_BASELINE_REF, SECURARO_DIFF_BASE | Pulse differential |
--incremental, --differential | — | Pulse modes |
--force-full-pulse | — | Ignore baseline once |
--fix-check, --verifies-scan, --finding-id | — | Fix verification scan |
--branch-key | — | Version branch key |
--ci-system, --ci-branch, --ci-commit, --ci-pipeline-url | SECURARO_CI_SYSTEM | Provenance |
--commit, --branch, --pipeline-url | — | Provenance aliases |
--create-version, --version-from | SECURARO_CREATE_VERSION | Auto version |
--profile, --time-budget | SECURARO_SCAN_PROFILE, SECURARO_PIPELINE_TIME_BUDGET_SEC | Pipeline profile |
--gate-only | SECURARO_GATE_ONLY=true | Evaluate gate only |
--format, --out-dir | — | json, sarif, junit, html, all |
--local, --path | SECURARO_LOCAL_SCAN | Self-hosted worker path |
--dast-url, --dast-auth-file | — | Local DAST |
--no-wait | — | Async: return scan id immediately |
securaro codrael scan
| Flag | Description |
|---|---|
-p, --path | Repository directory |
--baseline-file | Suppressions JSON |
--format | json or sarif |
--out | Output file |
Env: SECURARO_CODRAEL_ENGINE=native for worker native path.
securaro fix
-f / --finding, --action (fix_draft | signal_check | narrative), --out, --rescan-app.
securaro relay export
--format json|csv, --out.
Examples
Local folder scan (worker CLI on machine):
securaro scan --local --path ./my-repo -t sast --depth quick
CI gate with SARIF:
securaro scan -a my-app --profile pipeline --time-budget 300 \
--format sarif --out-dir "$RUNNER_TEMP/securaro-out"
Offline Codrael (no portal):
securaro codrael scan -p ./repo --format sarif --out findings.sarif
Exit codes
From packages/cli/src/exit-codes.ts:
| Code | Meaning |
|---|---|
0 | Success / gate passed |
1 | Runtime error |
2 | Usage error |
42 | Gate failed (EXIT_GATE_FAILED) |
Offline / on-prem
Air-gapped scans use worker CLI + POST /api/v1/scans/import. See On-prem & offline.