dispatch init
Initialize your Expo project for OTA updates. This is an interactive command that connects your local project to an AppDispatch project.
Usage
dispatch initRun this from your project root (where
app.jsonlives).
Prerequisites
- You must run
dispatch loginfirst - Your project must have an
app.jsonfile
What it does
- Prompts you to select a project from your AppDispatch dashboard
- Installs dependencies:
expo-updatesvianpx expo install@expo/fingerprintvianpm install --save-dev
- Patches
app.jsonwith the required update configuration:{ "expo": { "updates": { "url": "https://api.appdispatch.com/v1/ota/manifest/<project-uuid>", "enabled": true, "checkAutomatically": "ON_LOAD" }, "runtimeVersion": { "policy": "fingerprint" } } } - Creates
.dispatch/config.jsonwith your project UUID and slug - Adds
.dispatch/to.gitignore
After init
You’re ready to publish your first update:
dispatch publish --channel production -m "initial release"Last updated on