Usage
vibgrate update [--check] [--pm <manager>]
What It Does
vibgrate update checks for a newer version of the Vibgrate CLI and optionally installs it.
Flags
| Flag | Description |
|---|---|
--check | Only check for updates, don't install |
--pm | Force a package manager (npm, pnpm, yarn, bun) |
Examples
Check for updates without installing
vibgrate update --check
Update using npm
vibgrate update --pm npm
Update using pnpm
vibgrate update --pm pnpm
Update using yarn
vibgrate update --pm yarn
Update using bun
vibgrate update --pm bun
Automatic Detection
If --pm is not specified, Vibgrate detects your package manager by checking for lockfiles:
| Lockfile | Package Manager |
|---|---|
pnpm-lock.yaml | pnpm |
yarn.lock | yarn |
bun.lockb | bun |
package-lock.json | npm |
Best Practices
- Check for updates regularly to get the latest scanners and scoring improvements
- Pin your CLI version in CI for reproducible builds, and bump deliberately
- Use
--checkin CI scripts to log whether an update is available without actually installing