Skip to main content
This guide covers everything you need to install and configure pb-ext for development and production use.

System Requirements

Minimum Requirements

pb-ext requires Go 1.25.7 or higher. Earlier versions are not supported due to module dependencies.

Optional Dependencies

Installation Methods

Verifying Installation

After installation, verify everything works correctly:
1

Check Go Version

Should output go version go1.25.7 or higher.
2

Check pb-cli

Should display the pb-cli usage information.
3

Run Test Server

Create a minimal test:
Create main.go:
Run it:
4

Access Admin Panel

Open http://127.0.0.1:8090/_ in your browser.You should see the PocketBase admin setup page.
5

Access Dashboard

After creating an admin account, visit http://127.0.0.1:8090//.You should see the pb-ext health dashboard with system metrics.

Configuration

Environment Variables

pb-ext respects standard PocketBase environment variables: Set environment variables before starting:

Configuration Options

Configure pb-ext via functional options in your main.go:
WithConfig and WithPocketbase are mutually exclusive. Use one or the other, not both.

Custom Port Configuration

Change the default port (8090) programmatically:
Or via command line:

Troubleshooting

Problem: The pb-cli command is not found after installation.Solution: Ensure $GOPATH/bin is in your PATH:
Make it permanent by adding to your shell profile (~/.bashrc, ~/.zshrc, etc.):
Problem: Error messages about Go version requirements.Solution: Upgrade to Go 1.25.7 or higher:
Problem: bind: address already in use error.Solution: Find and kill the process using port 8090:
Problem: go mod tidy fails to download dependencies.Solution: Check your Go module proxy settings:
Problem: Cannot write to pb_data directory.Solution: Check directory permissions:
Problem: Cannot access /_/_ dashboard.Solution: The dashboard requires superuser authentication:
  1. First visit /_/ to create an admin account
  2. Log in to the admin panel
  3. Then access /_/_ - you should be automatically authenticated
If issues persist, clear cookies and try again.
Problem: Swagger UI shows no endpoints.Solution: Ensure your route files have the // API_SOURCE directive:
Check debug endpoint for AST parsing errors: http://127.0.0.1:8090/api/docs/debug/ast

Platform-Specific Notes

Linux

pb-ext works out of the box on most Linux distributions. For production deployments:

macOS

On macOS, you may need to allow the binary through Gatekeeper:

Windows

On Windows, use PowerShell or CMD:
Windows Defender may flag the compiled binary. Add an exclusion for your project directory if needed.

Next Steps

Quickstart Guide

Follow the quickstart to build your first pb-ext application

Configuration

Learn about advanced server configuration options

API Documentation

Set up auto-generated OpenAPI documentation

Deployment

Deploy to production with pb-deployer

Additional Resources