Brackets in a glob mean brackets
Brackets in a glob mean brackets
In a vx glob, [jt] matches one character, as in Turbo, Nx and your shell. A Next.js route folder like app/[id] needs escaping.
vx upgrade checks npm’s registry signature and the SHA-512 before it replaces anything, upgrades an npm, pnpm, bun or yarn install through that package manager, and swaps back if the new binary does not start.
vx upgrade swaps the binary you run only after every check passes.
Any failure keeps the old one.
flowchart LR
W{folder writable?} -->|no| X1[stop, print the sudo line]
W -->|yes| S{npm signature ok?}
S -->|no| X2[stop, nothing replaced]
S -->|yes| H{SHA-512 matches?}
H -->|no| X2
H -->|yes| R{new binary answers --version in 10 s?}
R -->|no| X3[swap the old one back, exit 1]
R -->|yes| OK[upgraded]
npm signs each release with a key vx pins. A server that swaps the file cannot make that signature. No network or a captive portal prints one line: nothing was replaced.
$ vx upgrade› vx upgrade 0.0.635 → 0.0.640
pnpm add @vzn/vx@0.0.640 --save-dev in /repoIf npm, pnpm, bun or yarn installed vx, that manager runs the upgrade.
In a project, package.json and the lockfile change together.
$ vx --versionvx 0.0.640 (/repo/node_modules/@vzn/vx-linux-x64/vx, handed off from /usr/local/bin/vx)A global vx hands the call to the project’s own @vzn/vx. So the
whole team and CI run the version in the lockfile. It never runs a
node_modules/.bin/vx that another user owns.
$ gh attestation verify vx-linux-x64 --repo vznjs/vxEvery binary carries a signed record of the repo, commit and CI workflow that built it. npm packages publish from CI, so no npm token exists to steal.
$ vx run build --concurrency 0x10✗ vx run --concurrency must be a positive integer, or a share of the cores like '50%' (got 0x10)
see vx run --help
$ vx run build --timeout 1e3✗ vx run --timeout must be a duration like '500ms', '30s' or '5m', at most 24 days (got 1e3)
see vx run --help
$ vx run build --retry 2✗ vx run unknown flag: --retry
see vx run --help
fix --retriesFull reference: CLI. More at vznjs.github.io/vx.