Skip to content

vp pm audit ​

Audit dependencies for known vulnerabilities.

bash
vp pm audit
vp pm audit --json
vp pm audit --production --level high

Options ​

OptionDescriptionNotes
--fixRequest automatic vulnerability remediation.
--jsonRequest native JSON output.Output retains the native schema.
--level <level>Minimum vulnerability level to report.
--productionOnly audit production dependencies.

Compatibility ​

  • npm: npm audit or npm audit fix.
  • pnpm: pnpm audit.
  • Yarn Classic: yarn audit.
  • Yarn Modern: yarn npm audit.
  • Bun: bun audit or bun audit fix.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--fixYesYesNoNo1.4 or later
--jsonYesYesYesYesYes
--level <level>YesYesYesYesYes
--productionYesYesYesYes1.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.