CLI
Upgrade
Update pxb to the latest build.
pxb upgrade
That downloads the latest build from the host you installed from and swaps it in place. Nothing else changes: credentials, profiles and pinned locations are kept. If you're already on the latest build it says so and changes nothing.
The new file is written beside the old one and renamed over it, so a failed
download never leaves a broken pxb behind. If the install directory isn't
writable by you, it stops and says so.
Check what you have with pxb --version. Running the installer again does
the same thing as pxb upgrade, and is the way onto a build from before the
command existed.
To fetch from somewhere else, set PXB_DOWNLOAD_URL:
PXB_DOWNLOAD_URL=https://staging.pxb.app/cli/pxb.js pxb upgrade
In your terminal: pxb help upgrade