System Requirements
Minimum Requirements
Optional Dependencies
Installation Methods
- Quick Start (Recommended)
- From Examples
- Docker
- Manual Build
Quick Start Installation
The fastest way to get started with pb-ext:1
Install Go
2
Create Project
3
Install pb-ext
Add pb-ext as a dependency:
4
Install pb-cli Toolchain
5
Create Application
Create
cmd/server/main.go:6
Run Application
Verifying Installation
After installation, verify everything works correctly:1
Check Go Version
go version go1.25.7 or higher.2
Check pb-cli
3
Run Test Server
Create a minimal test:Create Run it:
main.go: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 yourmain.go:
Custom Port Configuration
Change the default port (8090) programmatically:Troubleshooting
pb-cli: command not found
pb-cli: command not found
Problem: The Make it permanent by adding to your shell profile (
pb-cli command is not found after installation.Solution: Ensure $GOPATH/bin is in your PATH:~/.bashrc, ~/.zshrc, etc.):Go version too old
Go version too old
Problem: Error messages about Go version requirements.Solution: Upgrade to Go 1.25.7 or higher:
Port already in use
Port already in use
Problem:
bind: address already in use error.Solution: Find and kill the process using port 8090:Module download failures
Module download failures
Problem:
go mod tidy fails to download dependencies.Solution: Check your Go module proxy settings:Permission denied on Linux
Permission denied on Linux
Problem: Cannot write to
pb_data directory.Solution: Check directory permissions:OpenAPI docs not generating
OpenAPI docs not generating
Problem: Swagger UI shows no endpoints.Solution: Ensure your route files have the Check debug endpoint for AST parsing errors:
http://127.0.0.1:8090/api/docs/debug/ast
// API_SOURCE directive: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
- Source Repository: github.com/magooney-loon/pb-ext
- PocketBase Docs: pocketbase.io/docs
- Go Documentation: pkg.go.dev/github.com/magooney-loon/pb-ext
- Example Projects: github.com/magooney-loon/pb-ext/tree/main/cmd/server