Patchbay
Sign inStart free trial

Publishing

patchbay-cli publish builds your bundle, uploads what's new and makes it live on one channel.

npx patchbay-cli publish --app <app id> --channel production --message "Fix booking crash"

What happens

  1. Checks your API key and that your team can publish (trial or plan).
  2. Reads your public app config with expo config and works out the runtime version for each platform.
  3. Runs expo export for iOS and Android.
  4. Uploads only files Patchbay hasn't stored before. Files are stored by content hash, so an unchanged image is never uploaded twice.
  5. Makes patches from recent bundles where it can.
  6. Records one release per platform. Devices on that channel and runtime version get it on their next check.

Options

OptionWhat it does
--appApp id. Or set PATCHBAY_APP.
--channelChannel to publish to. Must match the build's expo-channel-name.
--platformios, android or all (default).
--message, -mShown in the dashboard and in list.
--runtimeUse this runtime version instead of resolving it.
--dry-runExport and check, without uploading or publishing.

Environment

The CLI runs in your project with your shell's environment, so EXPO_PUBLIC_* values come from wherever they normally do (your .env files or the shell). Publish with the same values your store build used.

PATCHBAY_TOKENAPI key (required).
PATCHBAY_APPDefault app id.

See what's live

npx patchbay-cli list --app <app id> --channel production

The filled dot marks what devices get now. The dashboard shows the same history.