# Over-the-air updates (/docs/updates)



An over-the-air (OTA) update replaces your app's JavaScript bundle and assets on devices. Native code changes still need a new build.

Liftbay keeps **one release** per publish and serves it over three protocols, so it works with the update library your app already uses:

| Client                                               | Protocol                                                             |
| ---------------------------------------------------- | -------------------------------------------------------------------- |
| [`expo-updates`](/docs/updates/clients#expo-updates) | Expo Updates protocol, with the `@liftbay/expo-plugin` config plugin |
| [CodePush](/docs/updates/clients#codepush)           | CodePush update check and status reports                             |
| [hot-updater](/docs/updates/clients#hot-updater)     | hot-updater 1.x release catalogs, and 0.x update checks              |

## How devices get updates [#how-devices-get-updates]

A built app knows its **channel** (for example `production`) and its **runtime version**. When it checks for updates, Liftbay returns the newest active release on that channel for that runtime version and platform, if the device falls inside the release's rollout percentage.

## Set up [#set-up]

```sh
npx liftbay ota init
```

For an Expo app, this installs `expo-updates` and the Liftbay config plugin, creates a channel per build profile bound to the profile's environment, and sets the runtime version policy in `app.json`. For CodePush and hot-updater apps it creates the channels and shows the values to add to your app ([client setup](/docs/updates/clients)). Then build once: the update URL and channel are part of the binary.

<Cards>
  <Card title="Publishing" href="/docs/updates/publishing" />

  <Card title="Rollouts and rollback" href="/docs/updates/rollouts" />

  <Card title="Signed updates" href="/docs/updates/signing" />
</Cards>
