This guide gets you from zero to a working custom PocketBase binary with one or more plugins.
1) Install XPB
Follow: Installing XPB
Verify it’s installed:
xpb version2) Build PocketBase + plugins
Build the latest PocketBase and include one or more plugins:
xpb build latest \
--with github.com/pocketbuilds/created_by@latest \
--with github.com/pocketbuilds/last_login@latestThis creates a pocketbase binary in the current directory.
3) Configure plugins (optional)
Create a pocketbuilds.toml next to your binary and add plugin config.
Example:
[created_by]
fields = ["posts.created_by"]
[last_login]
fields = ["users.last_login"]4) Run PocketBase
./pocketbase serveWhere to go next
- Learn the full builder options: Using the Builder
- Browse plugins: Browse Plugins
- Build your own plugin: Creating a Plugin