# Over-the-air updates (/docs/starter/modules/ota)

Choose with `--ota eas` or `--ota none` (default), with Starter v0.30.0 or newer. The updates are for the [native app](../native-app.mdx), so they need `--mobile expo`:

```text
Over-the-air updates are for the native app: add it with --mobile expo, or choose --ota none.
```

With [EAS Update](https://docs.expo.dev/eas-update/introduction/), a change to the app's JavaScript or assets is published once and downloaded by the installed apps. A store release is still needed for the rest: native code, a package with native code, or `app.config.ts`.

## How the app gets them [#how-the-app-gets-them]

- The app checks when it starts and when it comes back to the foreground, at most every 15 minutes, next to its [update checks](../native-app.mdx#updates), and downloads a new update.
- Home then offers to restart into it, with **Restart**; otherwise the app starts with it the next time.
- An update reaches only the builds of its version: `runtimeVersion` follows `version` in `app.json`, so a build with other native code never runs it. A release that changes native code comes with a new version ([Store releases](../native-app.mdx#store-releases)).
- Debug builds load their code from the dev server, and builds made before `eas init` have no update address: neither checks.

## Set it up [#set-it-up]

<Steps>
<Step>
Link the app to an Expo project with `eas init` ([Store releases](../native-app.mdx#store-releases)). `app.config.ts` then gives the builds their update address, `https://u.expo.dev/<project id>`.
</Step>
<Step>
Build the app with EAS. Each build profile in `apps/mobile/eas.json` names its channel, `development`, `preview`, or `production`, which its builds take updates from.
</Step>
<Step>
Publish an update to a channel with the **Native app update** workflow (`.github/workflows/expo-update.yml`, run from the Actions tab), with the `EXPO_TOKEN` repository secret. From `apps/mobile`, the same:

```sh
pnpm dlx eas-cli@latest update --channel production --environment production --message "What it changes"
```

The bundle is built with the channel's EAS environment, such as its `EXPO_PUBLIC_API_URL`, as the store builds are.
</Step>
</Steps>

expo.dev lists each channel's updates; publishing an earlier one again rolls an update back.

Projects without the module have neither `expo-updates` nor the channels (CLI 0.46.0 or newer).
