The CLI is now pbc
The CLI’s command is now pbc, and the names around it moved with it:
| Was | Is |
|---|---|
pb |
pbc |
pb.json |
pbc.json |
PB_TOKEN, PB_ENV, PB_INSTALL_DIR, … |
PBC_TOKEN, PBC_ENV, PBC_INSTALL_DIR, … |
~/.config/pb/config.json |
~/.config/pbc/config.json |
$ pbc --version
pbc 0.6.0
Every old name still works, so nothing you already wrote has to change.
pbis installed alongsidepbcand runs the same binary —npm i -g @pocketbasecloud/clilinks both names, thecurl | shinstaller writespbcand linkspbbeside it, andpbc self upgrademoves the pair together.- A directory holding a
pb.jsonis read from it and written back to it, so a repository you already committed never grows a second file and its diffs stay about the binding. New directories getpbc.json. - A
PB_*variable is read whenever itsPBC_*twin is unset, so an existing CI job keeps authenticating. - Your saved login is carried over: the old config is read until the first time the CLI writes one, which lands in the new location and leaves the old file untouched.
The one thing to do by hand is a repository secret. Workflows written by
pbc ci init now read secrets.PBC_TOKEN. Workflows you already have
keep working — the secret name is yours, and the action passes whatever you give
its token: input — so change it only when you want to. If you regenerate a
workflow with --force, the command tells you when the one it replaced named
the old secret.
Upgrade the way you installed it — pbc self upgrade for the standalone binary,
npm i -g @pocketbasecloud/cli@latest for npm. See
Installing the CLI.