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
- Checks your API key and that your team can publish (trial or plan).
- Reads your public app config with
expo configand works out the runtime version for each platform. - Runs
expo exportfor iOS and Android. - Uploads only files Patchbay hasn't stored before. Files are stored by content hash, so an unchanged image is never uploaded twice.
- Makes patches from recent bundles where it can.
- Records one release per platform. Devices on that channel and runtime version get it on their next check.
Options
| Option | What it does |
|---|---|
--app | App id. Or set PATCHBAY_APP. |
--channel | Channel to publish to. Must match the build's expo-channel-name. |
--platform | ios, android or all (default). |
--message, -m | Shown in the dashboard and in list. |
--runtime | Use this runtime version instead of resolving it. |
--dry-run | Export 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_TOKEN | API key (required). |
PATCHBAY_APP | Default 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.