Deployment
This skill covers deploying Expo applications across all platforms using EAS.
Quick Start
Install EAS CLI
bash
npm install -g eas-cli eas login
Initialize EAS
bash
npx eas-cli@latest init
Build Commands
Production Builds
bash
# iOS App Store build npx eas-cli@latest build -p ios --profile production # Android Play Store build npx eas-cli@latest build -p android --profile production # Both platforms npx eas-cli@latest build --profile production
Submit to Stores
bash
# iOS: Build and submit to App Store Connect npx eas-cli@latest build -p ios --profile production --submit # Android: Build and submit to Play Store npx eas-cli@latest build -p android --profile production --submit
Web Deployment
Deploy web apps using EAS Hosting:
bash
# Deploy to production npx expo export -p web npx eas-cli@latest deploy --prod # Deploy PR preview npx eas-cli@latest deploy
EAS Configuration
Standard eas.json:
json
{
"cli": {
"version": ">= 16.0.1",
"appVersionSource": "remote"
},
"build": {
"production": {
"autoIncrement": true
},
"development": {
"developmentClient": true,
"distribution": "internal"
}
},
"submit": {
"production": {}
}
}
Version Management
bash
# Check current versions eas build:version:get # Manually set version eas build:version:set -p ios --build-number 42
Monitoring
bash
# List recent builds eas build:list # Check build status eas build:view # View submission status eas submit:list