Docs PocketBase Deploying PocketBase

Deploying PocketBase

PocketBase Cloud gives you a fully managed PocketBase instance with automatic HTTPS, backups, and a dedicated admin panel. Here’s how to get one running.

Prerequisites

  • An active PocketBase Cloud account with a managed plan subscription
  • A project created in the dashboard

Step 1: Navigate to your project

Open your project from the Projects page and click on the PocketBase tab.

Step 2: Create a new PocketBase instance

  1. Click New PocketBase
  2. Enter a name for your instance (e.g., api or main-db)
  3. Click Create

PocketBase Cloud automatically:

  • Selects the best available server based on current capacity
  • Assigns a port and generates admin credentials
  • Provisions the instance and sets up DNS
  • Issues an HTTPS certificate

Step 3: Wait for provisioning

You’ll be taken to the provisioning page where you can watch the progress. Provisioning typically takes 30–60 seconds.

Once complete, your PocketBase instance is live at:

https://<instance-name>.pocketbasecloud.com

Step 4: Access the admin panel

Your PocketBase admin panel is available at:

https://<instance-name>.pocketbasecloud.com/_/

The initial admin credentials are shown on the instance detail page.

Managing your instance

From the instance detail page you can:

  • View connection details — URL, admin credentials
  • Add custom hooks — extend PocketBase with JavaScript
  • View real-time logs — stream logs directly in the dashboard
  • Delete the instance — removes the deployment and frees the slot

Using PocketBase hooks

PocketBase hooks let you add custom server-side logic to your instance. Navigate to the Hooks tab to create and manage hook files written in JavaScript.

Hooks have full access to the PocketBase API and can:

  • Add custom API routes
  • Run code on record create/update/delete
  • Schedule cron jobs
  • Send emails and notifications

Next steps