Installing XPB
Install the xpb cli application in order to build custom pocketbase binaries with plugins from the PocketBuilds ecosystem.
The xpb cli application also has a plugin project template generator for those who wish to develop xpb plugins themselves.
Dependencies
Download a Release
- Download the latest xpb release from the GitHub releases page.
Use go install
- Install Go.
- Follow this guide to add Go install directory to your system's shell path.
- Run the following command:
go install github.com/pocketbuilds/xpb/cmd/xpb@latest
Optionally, to get the version command to properly work you need to add an ldflag to the command with the specified version you want:
go install -ldflags '-X github.com/pocketbuilds/xpb.version=<version>' github.com/pocketbuilds/xpb/cmd/xpb@<version>