Code Reference

Commands

Expo · Reference cheat sheet

Commands

Expo · Reference cheat sheet


📋 Overview

Day-to-day Expo CLI / EAS commands for local dev, prebuild, installs, and cloud builds. Prefer npx expo / npx eas-cli for pinned versions.

🔧 Core concepts

  • Dev servernpx expo start (tunnel / LAN / USB).
  • Platform runnpx expo run:android / run:ios (dev client / bare).
  • Installnpx expo install <pkg> aligns SDK-compatible versions.
  • Prebuildnpx expo prebuild generates ios/ / android/.
  • EASeas build, eas submit, eas update, eas credentials.

💡 Examples

# Create & run
npx create-expo-app@latest MyApp
cd MyApp
npx expo start
npx expo start --tunnel

# Dependency aligned to SDK
npx expo install react-native-reanimated expo-secure-store

# Native projects + local run
npx expo prebuild
npx expo run:android
npx expo run:ios

# EAS
npx eas-cli build -p all --profile preview
npx eas-cli update --branch production --message "Fix crash"
npx eas-cli credentials
# Doctor / info
npx expo-doctor
npx expo config --type public

⚠️ Pitfalls

  • npm install of Expo modules without expo install → version mismatches.
  • Editing native folders then running prebuild without a strategy → overwrites (use plugins / CNG).
  • Confusing Expo Go limits with what a dev client build can do.

On this page