Commands overview
lockwarden has five commands. Each answers one question, each is CI-composable via the
exit-code contract, and each supports the
global flags (--json, --sarif, --ci, --dir,
--threshold, --offline).
| Command | Question it answers | Network | Needs git |
|---|---|---|---|
check | Am I resolving this package — through any transitive path? Was I ever? | none | only for --history |
audit | What can this tree execute, and what did a change introduce? | previous-tarball fetches in --diff/--deep only | only for --diff |
drift | Did my lockfile change in ways my manifest doesn’t explain? | none | yes |
scan | What can the artifact I ship actually execute? | none | no |
secrets | Are there hardcoded credentials in my project or install paths? | none | no |
Usage: lockwarden [options] [command]
Commands: audit [options] execution-surface audit of the resolved dependency tree check [options] [queries...] incident triage: report every path by which a package enters the tree drift [options] lockfile & version-anomaly detection vs a base ref scan [options] [artifact] execution-surface scan of an artifact: tarball, zip, dir, or docker-save image secrets minimal hardcoded-secret scan of the project and dependency install pathsWhich command, when
Section titled “Which command, when”- Incident in the news →
check(see the incident-response runbook). - Dependency-bump PR open →
audit --diff+drift --base(see dependency review). - First look at a project → plain
auditfor the absolute execution-surface baseline. - About to publish or deploy →
scanon the tarball ordocker saved image. - While you’re at it →
secretsfor hardcoded credentials.
Shared behavior
Section titled “Shared behavior”- The lockfile is the source of truth.
check,audit, anddriftresolve frompackage-lock.json(v1/v2/v3),yarn.lock(classic and berry),pnpm-lock.yaml(6.x/9.x), orbun.lock— never frompackage.jsonalone. - Output modes. Human-readable by default;
--jsonfor stable machine-readable reports;--sarif(on scoring commands) for the GitHub Security tab. - Exit codes.
0clean ·1findings at/above--threshold·2execution error. Per-command matrix: exit codes. - Network. Only
audit --diff/--deepever touch the network, and only to fetch previous-version tarballs through a single chokepoint module.--offlineturns any attempt into exit2.