Using the Builder

$ xpb build [<pocketbase_version>]
 [--output <file>]
 [--with <module[@version][=replacement]>...]
 [--config <file>]
  • <pocketbase_version> is the desired version of pocketbase to use. It defaults to the value of the env variable XPB__PB_VERSION, or to latest if that is not defined.
  • --output is the output file. Defaults to pocketbase.
  • --with is used to add an xpb plugin to the build. This flag can be used multiple times to add multiple plugins. It can also be used to change the version of xpb that is used for the build or replace the xpb and pocketbase modules to forked repositories if desired.
  • --config should be a filepath to a .toml config file that describes your build. This can be used as an alternative to the cli arguments, or it can be used in conjunction with them. Config options described with cli arguments will take precedence and override config options in the config file if applicable.