vp pm audit
Audit dependencies for known vulnerabilities.
bash
vp pm audit
vp pm audit --json
vp pm audit --production --level highOptions
| Option | Description | Notes |
|---|---|---|
--fix | Request automatic vulnerability remediation. | |
--json | Request native JSON output. | Output retains the native schema. |
--level <level> | Minimum vulnerability level to report. | |
--production | Only audit production dependencies. |
Compatibility
- npm:
npm auditornpm audit fix. - pnpm:
pnpm audit. - Yarn Classic:
yarn audit. - Yarn Modern:
yarn npm audit. - Bun:
bun auditorbun audit fix.
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|---|---|---|---|---|---|---|
--fix | Yes | Yes | No | No | 1.4 or later | |
--json | Yes | Yes | Yes | Yes | Yes | |
--level <level> | Yes | Yes | Yes | Yes | Yes | |
--production | Yes | Yes | Yes | Yes | 1.2.21 or later |
Vulnerability output and failure thresholds retain the native manager's semantics.
Native Options
For native options, see npm audit, pnpm audit, Yarn npm audit, Yarn Classic audit, and Bun audit. To pass these options through Vite+, see Native Arguments.