Agent Quick Start
Copy this into your coding agent from the root of your mobile app repo:Agent prompt
How It Works
The loop has three pieces:- A development-capable build installed on the cloud device.
- A local dev server or build command running in your workspace.
- A Revyl session that connects the device to your local app through the CLI.
What You Need
- A Revyl account with access to your workspace.
- The Revyl CLI installed and authenticated. See Revyl CLI.
- A Revyl app with an uploaded development build.
- A project directory that Revyl can run locally.
For iOS, use a simulator
.app or zipped .app, not an .ipa. For Android,
use a debuggable APK with x86_64 support. See
Artifact Requirements.1. Upload a Development Build
The uploaded build is the shell Revyl installs on the cloud device. It must be able to load local code or be rebuilt quickly for local changes.| Stack | What to Upload |
|---|---|
| Expo | A development client build. For iOS, use an EAS profile with developmentClient: true and ios.simulator: true. For Android, use a development APK. |
| React Native | A debug simulator .app for iOS or debug APK for Android. Metro provides the JavaScript bundle. |
| Flutter | A debug simulator .app or debug APK. Revyl rebuilds and reinstalls when code changes. |
| Native iOS | A Debug build for the iphonesimulator SDK. |
| Native Android | A debuggable APK, usually from ./gradlew assembleDebug. |
2. Initialize Your Project
Run this from the app directory, not the monorepo root unless the app itself lives there:revyl init creates .revyl/config.yaml and detects the local provider Revyl should use.
If detection picks the native project inside an Expo or React Native app, force the provider:
3. Start the Loop
You can start from the terminal or from a live session in the UI.Start From the Terminal
Start From the UI, Then Attach
If you already launched a session from the dashboard, attach your local dev loop to it:4. Iterate
For Expo and React Native, save a JavaScript or TypeScript file and wait for Metro to update the cloud device. For other stacks, some code changes need a new build before they appear on the cloud device. Use the rebuild flow inrevyl dev when that happens.
Use the browser stream for visual checks, or drive the device from another terminal:
5. Handle Login Early
If the app needs authentication, decide how agents should reach a useful state before they start debugging. Good options are:- A stable test account with seeded data.
- A staging-only demo mode.
- A test-only auth bypass deep link.
Troubleshooting
| Symptom | What to Check |
|---|---|
| iOS build will not install | Confirm it is a simulator .app, not an .ipa. |
| Android build will not install | Confirm the APK is debuggable and includes x86_64. |
| Expo opens but does not load local code | Check the URL scheme, Metro output, and dev client profile. |
| Revyl detects the wrong framework | Run from the app directory or re-run revyl init --provider expo / react-native. |
| Native changes do not appear | Rebuild and reinstall from revyl dev, then relaunch the session if needed. |
CLI Dev Loop Guide
Full command reference for contexts, attach, tests, and rebuilds.
Auth Bypass Deep Links
Start sessions from authenticated app states.