Develop locally
Scaffold a project and get a PocketBase binary on your machine in one command. The version is pinned in pbc.json, so everyone on the team runs the same build.
$ pbc initRead the local development docsOne binary takes a project from your laptop to a deployed instance in the cloud, and manages everything in between — collections, records, API rules, hooks, backups, and deployments.
$ npm i -g @pocketbasecloud/climacOS, Linux and Windows. The curl installer needs no Node at all.
Three kinds of resource, one binary. Each deck below is the commands you would actually run, in the order you would run them.
Scaffold a project locally, deploy the instance, and ship your hooks and migrations with it.
Scaffold a project and get a PocketBase binary on your machine in one command. The version is pinned in pbc.json, so everyone on the team runs the same build.
$ pbc initRead the local development docsYour hooks and migrations ride along with the instance. Migrations are merged with the ones already there and applied by the restart that follows, so a redeploy never resets data.
$ pbc cloud pb deployRead the PocketBase docsThe dashboard editor is one way in. Keep pb_hooks/ in version control instead, review hooks like the rest of your code, and push the directory when it is ready.
$ pbc cloud pb hooks pushRead the hooks docsBuild, package, and upload a static site, then put your own domain in front of it.
One command runs your build, packages the output, uploads it, and waits for HTTPS to come up. The first deploy records the site in pbc.json, so every deploy after it needs no flags at all.
$ pbc cloud frontend deployRead the frontend docsPoint a CNAME at your site, then let the CLI check it. Once DNS resolves, the certificate is issued for you — there is no dashboard step, and nothing to renew.
$ pbc cloud frontend domain addRead the custom domain docsRun Node.js, Deno, Bun or Next.js, with encrypted configuration and live logs.
The runtime, build command, and output directory are inferred from the directory itself — deno.json, bun.lockb, next.config, package.json — and written into pbc.json on the first deploy.
$ pbc cloud backend deployRead the backend docsEnvironment variables are stored encrypted and applied on the next restart. When something misbehaves, follow the container’s log from the same terminal instead of opening a dashboard.
$ pbc cloud env setRead the environment docsScaffold and run PocketBase locally, deploy instances, backends, and static sites, then manage what you deployed — without leaving the shell.
Read the CLI docsThree commands between an empty terminal and a live deployment.
$ npm i -g @pocketbasecloud/cliOr curl | sh — no Node required.
$ pbc cloud loginOpens a browser once, then remembers.
$ pbc cloud deployDetects what this directory is.