Commands

Open-source local commands plus Cloud bridge. Non-interactive flags first. Stable exit codes for CI and agents.

Global options

OptionDescription
--quietHide progress on stderr (also hides Cloud/API tips)
--verboseShow npm and verification output
--no-colorDisable ANSI colors (also respects NO_COLOR)

Progress goes to stderr. JSON results stay on stdout for clean pipelines. Text mode prints a tip for Cloud API, SDK, and MCP after scan/fix.

Open-source — eridas scan

Read-only scan of the npm dependency tree against OSV. No Cloud account required.

eridas scan .
eridas scan . --severity high
eridas scan . --format json
eridas scan . --ai
eridas scan . --quiet --format json
OptionDescription
--severity <level>unknown, low, moderate, high, critical
--format <format>text (default) or json
--aiOptional AI explanations for confirmed findings

Open-source — eridas fix

Plan-first remediation for direct dependencies.

eridas fix . --dry-run
eridas fix . --dry-run --format json
eridas fix .
eridas fix . --yes
eridas fix . --force --allow-major
OptionDescription
--dry-runPrint the plan only
--yesApply without prompting (preferred for agents/CI)
--forceUnattended apply; integrity checks still run
--allow-majorPermit planned major-version bumps

Open-source — eridas init

Generate scheduled GitHub automation and a starter config.

eridas init .
eridas init . --mode fix --schedule "0 9 * * 1"
eridas init . --force

Cloud — eridas auth

Store an API key (erd_…) for Eridas Cloud. Never put keys in eridas.config.json.

eridas auth login
eridas auth whoami --format json
eridas auth logout

Cloud — eridas cloud

Drive GitHub-connected repos via the Cloud API (same surface as @eridas/cloud-sdk).

eridas cloud repos
eridas cloud repos --sync --format json
eridas cloud scan --repo-id <uuid> --wait --format json
eridas cloud findings --repo-id <uuid>
eridas cloud remediate --repo-id <uuid> --wait
eridas cloud status --repo-id <uuid>

Exit codes

CodeMeaning
0Clean / success
1Findings remain
2Operational error
3Interactive fix approval declined