CLI Guide
Scan your project's dependency tree from the terminal in seconds. Zero configuration required.
Installation
Run instantly with npx — no install step needed:
Or install globally for frequent use:
Commands
$ depgraph check
Scan the current project's dependencies and return a scored report.
Options:
| Flag | Default | Description |
|---|---|---|
| --path <dir> | . | Directory containing package.json |
| --format <fmt> | table | Output format: table | json |
| --threshold <n> | none | Exit 1 if project score < n |
| --depth <n> | 2 | Transitive dependency depth |
| --no-color | — | Disable color output |
Output Format
Exit Codes
| Code | Meaning |
|---|---|
| 0 | All checks passed |
| 1 | Score below --threshold |
| 2 | Error (network failure, invalid project) |
Authentication
Link CLI scans to your dashboard by authenticating with your API key:
You will be prompted to paste your API key. Get it from your Settings → API Keys page at depgraph.vedanshh.dev/settings/api. Your key is saved to ~/.depgraph/config.json.
Or provide it directly without a prompt:
Once authenticated, all scans are automatically linked to your account and visible in your dashboard.