Revyl Documentation

CLI

Command reference

Every revyl command and its common flags, grouped by what it does.

Authentication

revyl auth login     # Authenticate with Revyl
revyl auth logout    # Remove stored credentials
revyl auth status    # Show authentication status

Billing

revyl billing status                 # Plan, card, free minutes, devices, usage, limits, rates
revyl billing status --json          # The same as JSON
revyl billing add-card               # Upgrade to Pro: open Billing to add a card
revyl billing add-card --no-open     # Print the link instead
FreePro
Monthly feeNone. No card.None
Free device minutesUp to 1,200 every monthThe same, used first
After the free minutesNew work waits for next month$0.075 per device minute on iOS and Android
Agent workspace sessionsWeb, from the free minutes$0.05 a session minute, web or macOS
Computer storageNo persistent computers$0.04 per GB-month, from the same credit
Devices at once210
ChargedNothing$5 credit, charged when you add a card

Enterprise: let's talk. Email support@revyl.ai.

  • Pro: you are on Pro once a card is on file. $5 buys about 66 device minutes on iOS or Android.
  • Device minute at $0.075: iOS and Android, devices and builds.
  • Up to 1,200: AI usage, builds and agent session time draw from the same monthly allowance.
  • Auto-recharge: $10 when credit drops under $2. Steps up as you use more. Set your own amount any time.
  • Monthly limit: none unless you set one. With a limit set, auto-recharge stays at its amount.
  • Revyl computers, macOS workspaces where agents build and test apps, come with Pro. Add a card to unlock them; your 1,200 free minutes still cover their sessions.
  • Computer storage: saved disks and snapshots of persistent computers, with no free allowance. See Storage pricing.
  • Devices at once: iOS and Android devices and Revyl computers share them; Web sessions don't use them. Need more than 10? Talk to us.
  • Organizations created earlier keep the free minutes and rates shown on their Billing page.

A run or session refused for billing prints the reason, the next step with its link, and, when the step is upgrading to Pro, what Pro costs. --json output carries billing_url, billing_action (add_card, top_up, update_card, raise_limit, request_access, or contact_sales), next_step, and, when Revyl sends it, upgrade_benefits (concurrent_devices_now, concurrent_devices_payg). Near the free-minute limit, a start prints a usage notice on stderr, and --json output carries it as billing_notice.

When every device is busy, a start waits for a free one instead of failing. revyl test run and revyl device start print the queue notice on stderr, and --json output carries it as queue_notice. revyl computer create does not wait: it fails with computer_limit. On Free the error offers Pro, which runs 10 devices at once; on Pro it names who to talk to for more.

Coding agents recommend upgrading to Pro when your task needs it, once, with the price and link Revyl printed. They don't retry a refusal, work around a limit, or add a card.

Feedback

Send feedback to the Revyl team from an authenticated CLI session:

revyl feedback --type bug "Rebuild hangs after restarting Metro"
revyl feedback --type bug --ref <command-id> "revyl dev rebuild hung after Metro restarted"
revyl feedback --type friction "Goal: rerun one failed test on a fresh build. Had to guess the build flag. Wished for: revyl test rerun <id> --latest-build"
revyl feedback --type feature --body-file request.md --json
revyl feedback --type other --body-file - --json < feedback.txt

Coding agents should send a report themselves, without asking the user first. Use bug when Revyl broke: an error that does not say how to fix it, or wrong docs or skill guidance. Use friction when Revyl worked but made the user's request harder than it should have been: no direct command, output that forced extra calls, guessed flags or reread help, a slow step, or unclear which command to use. A friction report gives the user's goal in general terms, what the agent ran, where it got hard, and the command it wishes existed. During setup, agents also report a step that fails or is blocked, or where the user stops, naming the step reached and what blocked it.

Under a detected agent, the CLI prints one stderr line inviting a friction report on the first command of each agent conversation, and one line suggesting revyl feedback with that run's command ID when a command fails, at most once every 30 minutes per machine. People running the CLI never see either. Agents the CLI does not recognize can set REVYL_AGENT=<agent-name>.

Choose bug, friction, feature, or other and give the message once: as an argument, --body, or --body-file. The command never prompts. --ref names the command ID, run, or session involved and is appended as a Ref: line. The message must be nonempty and no longer than 4,000 characters. Do not include secrets, API keys, or customer content. Requests include CLI version, OS, architecture, and available agent context. A friction report sent to an older Revyl API is resent once as other with a [friction] prefix; submissions are not otherwise retried.

Human mode prints Feedback sent to the Revyl team. to stderr; --json returns {"sent": true, "attachments_uploaded": true} on stdout. This command sends text only; the attachment field belongs to the shared support response.

Project Setup

revyl init                                    # Detect and write the local project config
revyl init -y                                 # Write it without interactive follow-up
revyl init --project <uuid>                   # Store this project ID locally
revyl init --detect                           # Re-run framework and build detection
revyl init --force                            # Replace an existing canonical local config
revyl init --xcode-scheme ios=MyAppDev        # Embed an Xcode scheme in generated commands (repeatable)

Initialization always writes a stable local project.id. When detection succeeds, it also writes the detected build.framework and named profiles for the detected iOS and/or Android platforms. Supplying --project writes that ID into the local file; it does not validate, register, attach, or publish a server project. An Xcode scheme supplied during setup is materialized into the generated build commands, not stored as separate runtime state.

Web setup is manual. Initialization leaves Web recipes out and points to Web recipes; it does not detect a Web framework, package manager, or preview host, or print host-specific CI workflows. Existing hand-written Web profiles are preserved by --detect.

Use -y to accept only deterministic local choices without prompts and stop after config creation. Interactive initialization may continue through the existing optional authentication, app, skill, and first-build onboarding after the local file is written. If authentication is needed, the CLI prints an approval URL and short code that may be approved in any signed-in browser. After it writes the project config, authenticated setup can also continue into revyl github setup. Configure GitLab automation separately with revyl gitlab setup. The locally written project.id remains unverified and unpublished unless that separate server-backed flow succeeds.

Find apps and check Web addresses

revyl setup detect --json                     # List every iOS, Android, and Web app below this folder
revyl setup check-url my-app.vercel.app       # Check a Web address answers before Revyl opens it
revyl setup report --platform web --outcome skipped --reason no_reachable_url

detect reads files only: each app's folder, platforms, framework, and role (app, docs, or example), and for a Web app its dev command and port and the public addresses its own files name. check-url refuses localhost and private addresses, loads the page, and reports its title and an outcome such as reachable, bot_check, or dev_server_host_blocked with the next step; it exits 1 unless the page is reachable. report records how setting up one platform ended, with bounded values only. Revyl's hosted setup instructions run all three.

Project Config

Inspect, validate, and migrate the nearest local .revyl/config.yaml. Use the global -C <directory> option to select another project root in the same worktree.

revyl config path                                 # Print the selected config path
revyl config show                                 # Show the local project config
revyl config show --json                          # JSON for scripting
revyl config validate                             # Validate locally and, with authentication and a supported GitHub or GitLab origin, against Revyl
revyl config migrate                              # Summarize, confirm, back up, and replace a legacy file
revyl config migrate --check                      # Summarize a legacy conversion without writing
revyl config migrate --write                      # Back up and replace without confirmation
revyl config migrate --project <uuid>             # Use this project ID in the local conversion
revyl config push                                 # Publish the complete config when authority is manual
revyl config push --force                         # Publish once; the repository's default branch keeps management
revyl config pull                                 # Restore or replace from server state, backing up divergence
revyl config pull --project <uuid>                # Assert the expected configured project ID before pulling
revyl config pull --repo owner/name               # Name the GitHub repository when origin cannot be read
revyl config authorize-cursor-proof               # Authorize Cursor proof runs for the current project

config path and config show use the same nearest-config selection as other project commands. config show expects the canonical contract; migrate a legacy file first. To change settings, edit .revyl/config.yaml directly and validate it; the config commands have no separate command for mutating individual YAML keys.

config migrate only mutates local project files. A successfully prepared legacy migration uses the same concise clean-or-lossy human summary; a write creates an exact-byte backup. JSON --check contains the complete migration proposal and migration ledger. Legacy top-level test aliases become conflict-checked .revyl/tests/<alias>.yaml files. A matching file for the same remote test is preserved byte-for-byte; any other destination conflict fails migration. The retired top-level workflow alias cache is reported and removed.

The default mode asks for confirmation, creates an exact-byte config backup, creates only missing alias files, and atomically replaces the config. --check creates no backup and writes no file; --write performs the same local changes without confirmation. When authenticated, migration may make read-only lookups to reuse or interactively select a project from the verified repository, resolve enabled legacy PR-build app names to exact platform app IDs, and resolve legacy PR workflow names—including the implicit smoke workflow from smoke_every_pr—through authenticated exact-name lookup. Missing, duplicate, or inaccessible workflow matches are omitted and reported instead of stopping the remaining conversion. An enabled PR build is never silently removed: unresolved app or framework meaning is reported as lossy and omitted from the best-effort proposal. Inspect JSON --check before writing; afterward, compare the reported backup or ask a coding agent to reconcile omissions. Use --project when you need to supply the local project identity explicitly. Migration never creates or attaches a server project, pulls or publishes configuration, or otherwise mutates server state.

The conversion exists only in your checkout until you commit it. After migrating, commit the converted .revyl/config.yaml and any new .revyl/tests/ files with your change, but not the backup; otherwise every fresh checkout fails with the legacy-format error again. A write lists those files, and --write --json reports them in uncommitted_config_migration.repository_relative_paths_to_commit. Until the commit lands, commands that read the project config print a one-line stderr reminder at most once every 24 hours per machine, never with --json or --quiet. If you can't commit, tell the repository owner.

config validate always validates the discovered project config locally. When authenticated and a supported GitHub or GitLab origin is available, it also verifies repository access and checks the project identity, repository root, configuration path, and referenced Revyl resources without writing anything. Validation requires a stable project.id; it does not convert or scaffold a legacy config. A valid file does not change pull request automation until it is published, so after connected validation succeeds the command also reports whether Revyl runs this exact configuration. The JSON publication.status is published, unpublished, drifted (the local file differs from the published one), or unknown when connected validation did not succeed, and publication.next_action names the step that publishes it: revyl config push, or for a project managed from the repository's default branch, committing the designated .revyl/config.yaml. If the local file does not enable both PR review and Proof of Changes, unpublished or drifted guidance first asks you to configure an enabled pr_review block with its build settings and proof_of_changes.enabled: true, then validate again.

config push requires a readable local project config, authentication, and verified access to its connected repository. Recovery errors name the exact config migrate (then commit the converted files), config pull or init, auth login or auth status, github status or github connect, Git-origin or repository-access repair, config validate, or retry command needed for the failed prerequisite. Push then reads the current server state and publishes with an exact absent-or-hash precondition. It makes a single publish attempt so an ambiguous network result cannot be retried as a new write. Projects managed from the repository's default branch reject ordinary manual publication; validate the file and commit the designated .revyl/config.yaml instead. config push --force is an explicit one-publication override. It doesn't change who manages the config or its reconciliation position, so a later configuration change on the repository's default branch can replace the forced aggregate. Under manual authority, --force does not change behavior.

When no local config exists, config pull verifies the connected repository, selects the nearest configured project root containing the current directory, verifies its configuration hash, and atomically creates .revyl/config.yaml at that root. --project may select an explicitly identified, more-specific registered project beneath an ancestor local config, but it never rebinds an applicable active local project with a different ID. It does not replace a legacy or invalid file. With an existing valid file, semantic equality remains a no-op. Divergence creates an exact-byte backup and atomically replaces the file. When the local project was deleted and exactly one active replacement owns the same root, pull performs that backup/replacement without trusting the retired ID. Pull reports the backup path and does not require an interactive confirmation, including in JSON and non-interactive invocations.

config authorize-cursor-proof records server-owned human authority for unattended Cursor proof runs after Revyl confirms the caller can launch cloud agents and the caller's live Cursor repository catalog includes the project repository. It does not edit or publish .revyl/config.yaml, and works for both manual authority and authority from the repository's default branch.

Inherited Launch Configuration

REVYL_INHERITED_LAUNCH_ENV_VAR_IDS is a comma-separated list of stored launch-configuration UUIDs applied automatically by revyl dev, revyl test run, revyl workflow run, and raw revyl device start commands. Cloud Agent Conversations sets it from the launch selection. Explicit --launch-var and --launch-arg-set values remain additive; --no-inherited-launch-vars ignores it entirely. Restart an existing device or dev session before changing launch configuration.

Running Tests

revyl test run login-flow                 # Saved choice, or the app's automatic branch selection
revyl test run login-flow --build         # Build, upload, then run
revyl test run login-flow --cookies-file cookies.json  # Web test: storage state or a cookie array, set before the first navigation

revyl workflow run smoke-tests            # Run a workflow
revyl workflow run smoke-tests --build    # Build then run workflow

Advanced Run Flags

--build-id <id>   # Run one exact build
--branch <name>   # Run-only Revyl branch override
--build-selection latest  # Newest build on the branch, ignoring its pin
--all-branches    # Newest build across all of the app's branches
--no-wait         # Queue and exit without waiting for results
--verbose / -v    # Show step-by-step execution progress
--timeout 3600    # Max execution time in seconds

Explore

Build or refresh an Atlas map from the terminal:

revyl explore run "My App"                # The app's automatic branch selection; wait
revyl explore run --platform android       # Use the configured Android app
revyl explore run "My App" --no-wait --json
revyl explore status <run-id>
revyl explore cancel <run-id>

Common run flags:

--build-id <id>                # Explore an exact uploaded build
--branch <name>                # Use this branch instead of your Git branch or the default branch
--build-selection latest       # Newest build on the branch, ignoring its pin
--all-branches                 # Newest build across all of the app's branches
--explorers 4                  # Parallel explorers (default 3)
--strategy surface-sweep       # balanced, surface-sweep, journey-focus, hard-edges
--instructions "Cover checkout" # Max 4000 characters
--instructions-file brief.md    # Or - for stdin; not with --instructions
--auth-instructions "Use the test account"
--launch-var <key-or-id>       # Stored launch variable (repeatable)
--device-model "iPhone 16"
--os-version "iOS 18.5"
--max-duration 20m
--idle-timeout 10m
--timeout 30m                  # Local wait limit; does not cancel the run
--open

See Explore from the CLI for output, outcome, and CI semantics.

Dev Loop

revyl dev starts a local development loop backed by a cloud device session. Both Expo and bare React Native projects are supported, plus native Swift/iOS and Android projects via rebuild-based loops.

Each revyl dev start creates a dev context -- a named, worktree-local dev loop bound to one resolved profile/platform recipe. Use --context for same-repo concurrency; separate worktrees use the default context automatically. The context keeps that recipe for subsequent rebuilds.

revyl dev --build-profile development --platform ios  # Explicit profile and platform
revyl dev --platform android           # Infer the profile when only one remains eligible
revyl dev --context ios-main           # Named context for parallel loops
revyl dev --no-open                    # SSH/headless: keep device running but don't open browser
revyl dev --build-profile development --platform ios --build  # Force a fresh build
revyl dev --app-id <app-id>            # Use explicit app override
revyl dev --build-version-id <id>      # Use explicit build override
revyl dev --launch-var API_URL         # Add a stored variable by key (UUID also accepted)
revyl dev --no-inherited-launch-vars   # Ignore inherited launch-variable IDs
revyl dev --force-hot-reload           # Diagnostic launch after Expo relay transport
revyl dev --no-build --tunnel "<expo-dev-client-link>"  # Use an existing Expo tunnel/deep link

Profile and platform selection applies explicit flags first. Without --build-profile, revyl dev prefers one uniquely named development-like profile, then falls back to a sole eligible choice. Development-like names contain a dev or development token, so dev, development, and ios-dev match but device does not. Any remaining interactive ambiguity prompts; a non-interactive run fails with the choices and the required flag. There is no active/default profile or default platform.

--build-profile on revyl build, revyl dev, revyl test run, and revyl workflow run was named --profile before. The old name still works and prints Flag --profile has been deprecated, use --build-profile instead; revyl mcp serve --profile likewise became --tool-profile.

revyl dev:

  • starts your local dev server (Expo via npx expo start --dev-client, or Metro via npx react-native start)
  • creates a Revyl relay to expose it to cloud devices
  • runs on --branch, otherwise your Git branch when automatic detection is on (creating it if needed), otherwise the app's default branch, and uploads its rebuilds there
  • installs that branch's default build, unless --build-selection latest or --build-version-id picks another
  • on a new or empty branch, builds a dev build first
  • outside a Git checkout, with no branch or build chosen, uses the newest usable build on the app's default branch, even when that branch is pinned
  • with --remote --seed-latest, installs the branch's newest build at once and swaps in the fresh build when it lands
  • with --no-build, reuses an existing build and turns off rebuilds; with detection on, your Git branch falls back to the app's default branch when it has no usable build, while a branch you name fails
  • doesn't accept All branches, since a dev loop follows one branch
  • keeps the same resolved recipe and branch for detached startup and every rebuild in the context
  • opens a cloud device session wired to the deep link

Normal revyl dev runs suppress advisory HMR diagnostics. Use revyl dev --debug when you specifically need relay/HMR troubleshooting output. In cloud-agent environments, keep the Revyl relay running after Dev loop ready and use device screenshots or revyl device report --session-id <id> --json as source of truth before switching to an external Expo tunnel. For Expo manifest readiness timeouts, use --force-hot-reload as the first diagnostic path. Revyl still starts Expo and verifies relay transport; the flag skips only the manifest and bundle proof so the device can be the source of truth. If the app loads, keep working. If the dev client shows a project load error, restart Expo/Metro or capture a session report with revyl device report --session-id <id> --json.

For externally managed Expo tunnels, start Expo yourself and pass either the full dev-client link Expo prints or the raw https://... tunnel URL:

npx expo start --tunnel --dev-client
revyl dev --no-build --app-id <app-id> --tunnel "<deep-link-from-expo>"

When you pass the full Expo dev-client link, revyl dev uses its scheme and prefix directly, so selected-build metadata is not required. For a raw tunnel URL or normal startup, Expo scheme and prefix information comes from the selected build's metadata.

After the dev loop is running, use revyl device commands to interact:

revyl device screenshot
revyl device tap --target "Login button"
revyl device instruction "verify the dashboard loads"

Device-first flow

Start a plain device session first, then attach and run the dev loop on it:

revyl device start --platform ios
revyl dev attach active                # or: revyl dev attach <session-id>
revyl dev                              # reuses the attached session

When a context has an attached session, revyl dev --context <name> reuses it instead of provisioning a new device. Attached sessions are left running when the dev loop exits -- use revyl device stop to end them.

Context management

revyl dev list                         # List dev contexts in the current worktree
revyl dev use ios-main                 # Switch the current context
revyl dev status                       # Show context status (JSON)
revyl dev rebuild                      # Trigger a rebuild
revyl dev rebuild --clean --wait       # Rebuild and reinstall with fresh app data
revyl dev stop                         # Stop the current context (name one when several are live)
revyl dev stop --all                   # Stop all contexts

revyl dev stop exits zero when the named context doesn't exist in this worktree, printing that there is nothing to stop; --json adds already_stopped: true. Without a context name or --context, it refuses to choose when more than one context in the worktree has a running loop or its own device session, and lists each one with its revyl dev stop <context> command. When exactly one context is live and the current context is a loop that has already exited, it stops the live one instead and says so on stderr; --json output then adds defaults_applied. If there is no current context and several contexts exist, it asks you to name one, as before.

Hot reload providers

Expo deep-links into a dev client via app_scheme; bare React Native loads the JS bundle directly over the Revyl→Metro relay. For provider config schema and the full per-framework setup walkthrough, see Dev Loop Overview.

New Branch Build Flow

With automatic Git branch detection on, use this when you create a new Git branch and want revyl dev to run that branch's build:

git checkout -b feature/new-login
revyl build --build-profile development --platform ios
revyl dev --build-profile development --platform ios

Both use the Revyl branch feature/new-login, which the first upload creates. With detection off, pass --branch feature/new-login to both commands to select that branch explicitly.

To use one exact build:

revyl dev --build-version-id <build-id>

New Branch Direct File Flow (No Build Step)

Use this when you already have a local artifact and want to upload it without running the build command.

  1. Build the artifact with your normal local or CI build command.
  2. Upload it with revyl build upload --file.
  3. Run revyl dev.
git checkout -b feature/new-login
revyl build upload --file build/dev-ios.tar.gz --platform ios
revyl dev --build-profile development --platform ios

Optional explicit version label:

revyl build upload --file build/dev-ios.tar.gz --platform ios --version feature-new-login-20260227-153000

Plain device sessions (no hot reload -- these are the base layer revyl dev builds on):

revyl device start --platform ios
# Want hot reload? Run: revyl dev attach active

Builds and Dev Mode

All revyl build and revyl build upload commands push to an app container. For config-driven builds, that is the app_id on the resolved recipe. When Git metadata is available, each upload records its Git branch and commit.

--branch <name> chooses the branch to upload to or run on. Without it, uploads go to your Git branch and runs on Default branch try it first when automatic detection is on. Turn detection off in App settings > Build branches to use the app's default branch instead; explicit and saved choices still apply. See How a run picks its build.

Each developer gets their own cloud device session, relay, and local dev server -- builds are the only shared resource.

When you need a new build (by project type):

  • Expo / React Native: Dev mode serves your JS/TS live from your local Metro via a Revyl relay. The binary is just a "dev client shell." You only need a new build when native dependencies change (new native modules, Podfile changes, Gradle dependency changes, app.json native config).
  • Swift: Every code change requires a new build. The binary is the app.
  • Kotlin/Android: hot reload isn't supported, so every code change requires a new build.

Team workflow commands:

revyl build list --app "My App" --branch feature/new-login
revyl build --build-profile development --platform ios      # Uses the app's automatic upload branch
revyl dev --build-profile development --platform ios        # Uses the app's automatic branch selection
revyl dev --build-profile development --platform ios --branch main  # Reuse another branch's dev build
revyl dev --build-version-id <id>            # Use one exact build

Tip: For Expo/React Native, developers can share one dev build and still see their own code changes, since JS is served locally. For native projects, each developer should upload their own branch build.

App Management

An app is a named container for your uploaded builds (e.g. "My App Android"). Tests run against an app.

revyl app create --name "My App" --platform android   # Create an app
revyl app list                                         # List all apps
revyl app list --platform ios                          # Filter by platform
revyl app delete "My App"                              # Delete an app

Manage the default branch and each branch's default build without changing Git:

revyl app branch list --app "My App"
revyl app branch create staging --app "My App"
revyl app branch default staging --app "My App"
revyl app branch pin staging <build-id> --app "My App"
revyl app branch unpin staging --app "My App"
revyl app branch rename staging release --app "My App"

Add --pin to revyl build or revyl build upload to pin the branch to the new build; uploads don't pin otherwise. Saved IDs survive renames; name-based scripts must use the new name. See Build branches and its CLI reference.

Build Management

revyl build                              # Build from config in the cloud
revyl build --build-profile development --platform android  # Build a selected recipe in the cloud
revyl build --build-profile preview --platform web --local  # Build a Web bundle locally and upload it
revyl build upload --file ./app.apk --app <id>  # Upload a local artifact directly
revyl build upload --url <artifact-url> --app <id>  # Ingest from a remote URL
revyl build upload --platform web --url <https-url>  # Register a Web preview deploy as a build
revyl build upload --file ./app.apk --app <id> --preview --json  # Also print a click-to-launch preview URL
revyl build which --app <app-id>          # Show the branch and build a run would use, and whether the branch is pinned
revyl build which --app <app-id> --branch staging --json
revyl build logs <build-job-id>          # Print a remote build's full log
revyl build logs <build-job-id> --follow # Stream it until the build ends; --json prints one event per line
revyl build list                         # List your organization's apps
revyl build list --app <app-id>          # List builds across all app branches
revyl build list --app <app-id> --branch staging --page 1 --page-size 20
revyl build list --app <app-id> --branch HEAD   # Builds for your checked-out Git branch
revyl build list --app <app-id> --all-branches  # All branches (the default)
revyl build delete <build-version-id>     # Delete one uploaded build version (asks to confirm)
revyl build delete <build-version-id> --force --json  # Skip the prompt; print the result as JSON

revyl build which shows the branch and build a run would use without starting one. It doesn't read a test or workflow's saved choice. See Check which build a run uses.

Direct builds select one customer-named profile and its ios, android, or web recipe. There is no active/default profile. If an omitted value has one eligible choice, the CLI resolves it; otherwise interactive use prompts and non-interactive use fails with the available choices. Local and remote builds execute the same inherited recipe from the selected project root.

revyl build runs in the cloud by default, except inside a running computer where REVYL_COMPUTER_ID selects local build and upload. Pass --remote to keep cloud execution. See Build Configuration for prerequisites and flags. This does not change revyl dev or test/workflow --build defaults.

Remote Build Caches

revyl cache list                         # List configured caches
revyl cache delete <key>                 # Delete a configured cache

These commands manage configured path caches. Automatic compilation caches are controlled through the remote build configuration. See Caching.

Uploading a Build

For GitHub PR matching from any CI runner, supply the base repository and full PR head SHA. These flags work with both --file and --url and override detected SCM identity:

revyl build upload --file ./app.apk --app <id> \
  --repo acme/mobile --commit "$PR_HEAD_SHA" --yes --json

See Use your own CI for review policy and runner setup.

Use revyl build any time you want to refresh the binary on Revyl without re-running tests.

Common flow:

  1. Make sure your app is configured and credentials are available.
  2. Run:
cd your-app
revyl build --build-profile development --platform ios

When --version is omitted, the CLI uses the version label <git-branch-slug>-YYYYMMDD-HHMMSS (for example feature-new-login-20260227-153000), from the branch checked out locally. On a detached checkout, as in most CI jobs, the label is the timestamp alone. The label doesn't choose the Revyl branch.

  1. Use the uploaded build ID from the result to run against that exact binary:
revyl test run login-flow --build-id <uploaded-build-id>

Or let Revyl build locally and upload before running the test:

revyl test run login-flow --build --build-profile development --platform ios

Useful companion commands:

  • revyl build list to verify uploads and inspect platform/app history
  • revyl test run <test> --build-id <id> to run one exact build

For Expo projects, authenticate any tools named by the selected recipe before running the build. Revyl executes the authored command arrays without rewriting eas.json or switching EAS profiles.

Uploading from a URL

For teams that store builds in internal artifact storage (Artifactory, S3, GCS, GitHub Actions), the CLI can ingest an artifact directly from a URL without downloading it locally first:

# Public or pre-signed URL
revyl build upload --url https://artifacts.internal.company.com/builds/app-latest.ipa --app <id>

# Authenticated URL with custom headers
revyl build upload --url https://example.com/builds/app.apk \
  --header "Authorization: Bearer <token>" \
  --app <id>

# Multiple headers
revyl build upload --url https://example.com/builds/app.ipa \
  --header "Authorization: Bearer <token>" \
  --header "X-Custom-Header: value" \
  --app <id>

The backend downloads, validates, and stores the artifact server-side. The --url flag is mutually exclusive with --file.

Preview a just-uploaded build

--preview prints a URL that auto-starts a simulator with that exact build when a signed-in org member opens it. Upload itself does not start a device. Opening the link lands in the normal session viewer. The launch page reads platform from the uploaded build's app. --json stays the same envelope and adds optional preview_url on the build object (/sessions/launch?buildId=<id>). Refreshing /sessions/launch while a start is in flight opens the same session; after that start settles, opening the durable URL again starts a new device. /sessions/launch?appId=<app_id> opens the default build of the app's default branch each time, instead of always opening one upload.

revyl build upload --file ./app.apk --app <id> --yes --preview --json

Native iOS: Build in Xcode, then revyl dev

For native iOS developers, revyl dev automatically detects the most recent simulator .app from Xcode DerivedData. Build your app in Xcode as you normally would, then run:

revyl dev                     # Auto-finds and uploads the local simulator build
revyl dev --build             # Force a rebuild from the configured build command
revyl dev --build-version-id <id>  # Use one exact uploaded build

The discovery scans ~/Library/Developer/Xcode/DerivedData/<Project>-*/Build/Products/Debug-iphonesimulator/*.app for the most recently modified non-test .app that matches the project in the current directory. Test runner bundles (*Tests.app, *UITests.app) are automatically excluded.

Test Management

For the end-to-end CLI authoring workflow, see Test Configuration.

# Test lifecycle
revyl test create login-flow --platform android   # Create + auto-sync YAML to .revyl/tests/
revyl test create --from-session <session-id> login-flow --app <app-id>
revyl test run login-flow                          # Run a test
revyl test run login-flow --no-open                # Keep a blocking terminal run from opening its completed report
revyl test run login-flow --no-inherited-launch-vars # Ignore inherited launch-variable IDs
revyl test open login-flow                         # Open test in browser editor
revyl test rename login-flow new-login-flow        # Rename while preserving history
revyl test duplicate login-flow                    # Clone an existing test
revyl test delete login-flow                       # Delete a test
revyl test cancel <task-id>                        # Cancel a running test

# Sync & inspect
revyl test sync                   # Reconcile local and remote tests
revyl test sync --dry-run         # Preview test reconciliation changes
revyl test sync --prune           # Reconcile tests and prune stale mappings
revyl test list                   # Show local tests with sync status
revyl test remote                 # List all tests in your organization
revyl test push                   # Push local changes to remote
revyl test push --force --include-modules-and-scripts  # Also update modules and scripts
revyl test pull                   # Pull remote changes to local
revyl test pull --all --app <app-name>  # Pull every saved test on one app
revyl test pull --all --app <app-name> --include-modules-and-scripts  # Plus the modules and scripts they use
revyl test diff login-flow        # Show diff between local and remote

# Execution status & reports
revyl test status login-flow                       # Latest execution status
revyl test status --branch main                    # Newest run of each test on a branch
revyl test status --branch main --since 7d         # Plus each test's runs and passes in 7 days
revyl test status --branch main --fail-unless-all-tests-passed  # Exit 2 or 3 unless every test passed
revyl test history login-flow                      # Execution history (table)
revyl test report login-flow                       # Detailed report (latest execution)
revyl test report <task-uuid> --json               # Report by task ID, JSON output
revyl test report login-flow --no-steps            # Summary only, no step breakdown
revyl test share login-flow                        # Public report link (no sign-in needed)
revyl test share login-flow --private              # Organization-only link; requires Revyl sign-in
revyl test share login-flow --open                 # Share link and open in browser

# Versioning
revyl test versions login-flow                     # Show saved versions for a test
revyl test restore login-flow --version 3          # Restore to a previous version

# YAML-first creation (requires .revyl/config.yaml)
revyl test create login-flow --from-file ./login-flow.yaml
revyl test create login-flow --from-file ./login-flow.yaml --force  # Update the saved test with this name
revyl test create --from-session <session-id> login-flow --app <app-id>
revyl test push login-flow --force

# Per-command flags
#   --dry-run    Available on: test create, test push, test pull
#   --include-modules-and-scripts    Available on: test push, test pull

# Live verify during a dev session, then promote to a regression
revyl dev
revyl device validation -s 0 "Home screen is visible"
revyl test create login-flow --from-session <session-id>
revyl test run login-flow

revyl sync is a deprecated compatibility alias for revyl test sync. Both forms reconcile tests only. Project configuration remains explicit through revyl init, revyl config pull, and revyl config push.

Test Variables

Per-test variables referenced in step descriptions via {{name}} syntax and substituted at runtime. Names may contain letters, numbers, hyphens, or underscores.

revyl test var list login-flow                              # List variables on a test
revyl test var get login-flow username                      # Read a single value
revyl test var set login-flow username=testuser@example.com # Add or update (upsert)
revyl test var set login-flow "password=my secret"          # Values may contain spaces
revyl test var set login-flow otp-code                      # Name-only (runtime-filled)
revyl test var rename login-flow old-name new-name          # Preserve value, change name
revyl test var delete login-flow username                   # Delete one
revyl test var clear login-flow                             # Delete ALL (needs --force in non-TTY)

Test variables are distinct from Global Variables (org-wide {{global.name}}) and Global Launch Configuration (org-wide reusable launch env vars).

Tags

Organize tests with tags for filtering and grouping. Automations use the same tags, through revyl automation create --tag and update --add-tag (Automations).

revyl tag list                                # List all tags with test counts
revyl tag list --search regression            # Filter by name
revyl tag create regression --color "#22C55E" # Create (color optional, hex)
revyl tag update regression --name regression-v2 --description "…"
revyl tag delete regression --force           # Delete (removes from all tests and automations)

# Tag assignments on a test
revyl tag get my-test                         # Show tags on a test
revyl tag set my-test regression,smoke        # Replace all tags (auto-creates missing)
revyl tag add my-test login                   # Add tags (keep existing)
revyl tag remove my-test smoke                # Remove specific tags

Module Management

Reusable modules can be imported into tests with module_import blocks. For examples, see Creating Tests.

revyl module list                                  # List modules
revyl module list --search login                   # Filter modules by name/description
revyl module get login                             # Show module blocks and metadata
revyl module create login-flow --from-file blocks.yaml
revyl module update login --from-file new-blocks.yaml
revyl module insert login                          # Print a module_import YAML snippet
revyl module usage login                           # Show tests that import this module
revyl module versions login                        # List saved versions (who changed what and when)
revyl module restore login --version 2             # Restore blocks + metadata to a prior version
revyl module delete login                          # Delete a module

Scripts

Manage code-execution scripts used by code_execution blocks in tests. Supported runtimes: python, javascript, typescript, bash.

revyl script list                                             # List all scripts
revyl script list --runtime python                            # Filter by runtime
revyl script list --json                                      # JSON output
revyl script get my-validator                                 # Show metadata + source
revyl script create my-validator --runtime python --file validate.py
revyl script create price-check --runtime javascript --file check.js --description "Validate prices"
revyl script update my-validator --file validate.py           # Replace source
revyl script update my-validator --name new-name              # Rename
revyl script update my-validator --description "Updated"      # Change description
revyl script delete my-validator --force                      # Delete
revyl script usage my-validator                               # Show tests that use this script
revyl script insert my-validator                              # Print a code_execution YAML snippet

File Management

Manage files (certificates, configs, images, media) in your organization's file library. Tests reference uploaded files via revyl-file:// URIs.

revyl file list                                               # List files
revyl file list --limit 10 --offset 20                        # Paginate
revyl file upload ./certs/staging.pem                         # Upload a file
revyl file upload ./config.json --name "App Config" --description "Feature flags"
revyl file download staging.pem                               # Download to ./staging.pem
revyl file download staging.pem ./certs/                      # Download into a directory
revyl file download staging.pem ./renamed.pem                 # Download to exact path
revyl file edit staging.pem --name "prod-cert.pem"            # Rename
revyl file edit staging.pem --file ./new-cert.pem             # Replace content (preserves ID)
revyl file delete staging.pem --force                         # Delete

Supported types (with size limits): certificates .pem .cer .crt .key .p12 .pfx .der (50 MB), config .json .xml .yaml .yml .toml .csv .txt .conf .cfg .ini .properties (50 MB), images .png .jpg .jpeg .gif .pdf (250 MB), media .mp4 .mp3 (500 MB).

Global Resources

Org-wide resources available across all tests.

Global Variables

Reference a global as {{global.name}}, which reads only global variables, or as {{name}}, where a local test variable with the same name takes precedence. Use --secret for credentials or tokens; secret values are encrypted and shown as ******** in list/get output. get --reveal prints the plaintext value with no trailing newline. Revyl audits every secret reveal.

Your own login or personal API key reveals any secret unless your role is Viewer. Every other key, such as a CI or agent key, a proof run's key, or the key Revyl's hosted runner uses for the Open preview link, reveals only a secret marked Readable by automated runs. Only a member signed in with their own login or personal API key can set or clear the mark, and a marked secret is readable by every automated run in the organization except a proof of a pull request from a fork.

revyl global var list                                         # List all
revyl global var get login-email                              # Read one (secrets are masked)
revyl global var get password --reveal                        # Print the plaintext value
revyl global var set login-email=testuser@example.com         # Add or update (upsert)
revyl global var set password --secret                        # Store as encrypted secret; prompts for the value without echoing it
printf '%s' "$PASSWORD" | revyl global var set password --secret --stdin  # Same, from a pipe
revyl global var set "password=new value" --no-secret         # Convert/update as plaintext
revyl global var set otp-code                                 # Name-only (runtime-filled)
revyl global var set password --readable-by-automated-runs    # Let automated runs reveal it (your own login or personal API key)
revyl global var delete login-email                           # Delete

Enter a secret at the prompt or pipe it with --stdin rather than typing name=value, which shell history and process listings can record. The same applies to revyl global launch-var create <KEY> --secret and revyl global launch-var update <KEY> --stdin.

Global Launch Configuration

Reusable launch configurations are stored at the org level and attached to tests from the web UI. Environment configurations hold key-value startup settings. iOS argument sets hold exact ordered argv tokens and are created and edited in Library > Launch Configurations. Either type can be secret.

Getting started with raw device sessions:

revyl global launch-var create API_URL=https://staging.example.com
revyl device start --platform ios --launch-var API_URL

Create an environment configuration with a KEY=VALUE pair, then pass its key or UUID to --launch-var. Select a stored iOS argument set by name or UUID with repeatable --launch-arg-set. Append non-secret inline tokens with repeatable --launch-arg=<token>.

revyl global launch-var list                                  # Show non-secret values; secrets stay masked
revyl global launch-var get API_URL                           # Show one
revyl global launch-var usage API_URL                         # Show the tests it's attached to
revyl global launch-var get API_TOKEN --reveal                # Print the plaintext value
revyl global launch-var get LAUNCH_ARGS --reveal --json       # Reveal an iOS argument set (needs --json)
revyl global launch-var create API_URL=https://staging.example.com
revyl global launch-var create API_TOKEN --secret             # Store encrypted; prompts for the value without echoing it
printf '%s' "$API_TOKEN" | revyl global launch-var create API_TOKEN --secret --stdin  # Same, from a pipe
revyl global launch-var create DEBUG=true --description "Enable debug startup"
revyl global launch-var update API_URL --value https://prod.example.com
revyl global launch-var update API_URL --secret               # Encrypt the current plaintext value
revyl global launch-var update API_TOKEN --secret=false --value replacement
revyl global launch-var update API_TOKEN --stdin              # Replace a secret's value from a prompt or pipe
revyl global launch-var update API_TOKEN --readable-by-automated-runs  # Let automated runs reveal it (your own login or personal API key)
revyl global launch-var update API_URL --key API_BASE_URL --description "Shared API endpoint"
revyl global launch-var delete API_URL --force                # Also detaches from any tests

Aliases: launch-var, launch-vars, launch-variable.

Workflow Management

# Lifecycle
revyl workflow list                                              # List all workflows
revyl workflow list --json                                       # JSON output
revyl workflow info smoke-tests                                  # Tests, overrides, run config, last run
revyl workflow create smoke-tests --tests login-flow,checkout    # Create workflow
revyl workflow add-tests smoke-tests payment                     # Add test(s) to workflow
revyl workflow remove-tests smoke-tests checkout                 # Remove test(s) from workflow
revyl workflow rename smoke-tests regression-smoke               # Rename (preserves history)
revyl workflow run smoke-tests                                   # Run workflow
revyl workflow run smoke-tests --concurrency 4                    # Override the cap for this run
revyl workflow run smoke-tests --concurrency 0                    # Use organization capacity only for this run
revyl workflow run smoke-tests --no-open                         # Keep a blocking terminal run from opening its completed report
revyl workflow run smoke-tests --build                           # Build + upload before running
revyl workflow run smoke-tests --build --build-profile development --platform ios
revyl workflow run smoke-tests --ios-app <uuid> --android-app <uuid>  # Override apps for this run
revyl workflow run smoke-tests --location "37.7749,-122.4194"    # Override GPS for this run
revyl workflow run smoke-tests --launch-var API_URL              # Stored variable key (UUID also accepted)
revyl workflow run smoke-tests --launch-env FEATURE_PREVIEW=true # Inline launch var for every test
revyl workflow run smoke-tests --launch-env API_TOKEN            # Secret inline value, read from the local $API_TOKEN
revyl workflow run smoke-tests --launch-arg-set AuthTestArgs      # Stored iOS argument set
revyl workflow run smoke-tests --launch-arg=--route --launch-arg="sign in" # Exact inline tokens
revyl workflow run smoke-tests --no-inherited-launch-vars        # Ignore inherited launch-variable IDs
revyl workflow open smoke-tests                                  # Open in browser
revyl workflow delete smoke-tests                                # Delete workflow
revyl workflow cancel <task-id>                                  # Cancel running workflow

# Execution status & reports
revyl workflow status smoke-tests                                # Latest execution status
revyl workflow history smoke-tests                               # Execution history (table)
revyl workflow report smoke-tests                                # Detailed report (latest)
revyl workflow report <task-uuid> --json                         # Report by task ID, JSON
revyl workflow share smoke-tests                                 # Public report link (no sign-in needed)
revyl workflow share smoke-tests --private                       # Organization-only link; requires Revyl sign-in
revyl workflow share smoke-tests --open                          # Share and open in browser

Blocking human-terminal test and workflow runs open their completed report by default. Use --no-open to suppress it. No-wait, JSON, GitHub Actions, CI, SSH, and other headless executions never open a browser, even when --open is present.

All four launch flags are repeatable. For duplicate keys, inline --launch-env values override --launch-var, and --launch-var overrides values attached to an individual test. An inline --launch-env KEY=VALUE value is non-secret and may be visible in shell history, process arguments, and execution reports. For a one-off secret, pass --launch-env NAME with no =: the CLI reads the value from the local environment variable NAME, so it is never a command argument, and reports and run logs record only the key. Use stored --launch-var values for secrets you reuse. Stored argument sets are flattened in attachment/flag order, then inline tokens are appended in flag order. Mixed workflows skip argument sets for Android children; Android-only runs reject them.

Workflow Settings

Stored overrides and run configuration that apply to every execution of a workflow.

# Location override (all tests in workflow use this GPS)
revyl workflow location set my-workflow --lat 37.7749 --lng -122.4194
revyl workflow location show my-workflow
revyl workflow location clear my-workflow

# App override (per platform)
revyl workflow app set my-workflow --ios <app-uuid>
revyl workflow app set my-workflow --android <app-uuid>
revyl workflow app set my-workflow --ios <ios-uuid> --android <android-uuid>
revyl workflow app show my-workflow
revyl workflow app disable my-workflow    # Turn the override off and keep its apps
revyl workflow app enable my-workflow     # Turn the saved override back on
revyl workflow app clear my-workflow      # Remove the override, like turning it off in the dashboard

revyl workflow config show my-workflow
revyl workflow config set my-workflow --concurrency 12
revyl workflow config set my-workflow --concurrency 0  # Remove the workflow cap

On workflow config set, --concurrency saves a cap for future runs across iOS, Android, and Web independently of the run-config override. Zero removes the cap; organization capacity always applies. Initialized runs retain their snapshot. JSON output includes nullable default_concurrency_limit. The CLI reads the saved value back before confirming a concurrency change (see Workflows).

On workflow run, --concurrency overrides the saved default for that run only; omitting it inherits the default, and 0 removes the workflow cap for that run. Organization capacity still applies. This works with both waiting and --no-wait runs. The execution API accepts concurrency_limit_override with the same semantics; omission or null inherits the saved default.

Workflow Quarantine

Quarantined tests still run but their failures are ignored when computing overall workflow pass/fail — useful for unblocking CI while flaky tests are investigated.

revyl workflow quarantine list smoke-tests                             # Show tests and status
revyl workflow quarantine add smoke-tests login-flow                   # Quarantine one
revyl workflow quarantine add smoke-tests login-flow checkout payment  # Quarantine several
revyl workflow quarantine remove smoke-tests login-flow                # Unquarantine

Automations

An automation runs one action each time one of its triggers fires: by hand, on a schedule, on a POST to its incoming webhook URL, or when a GitHub pull request is opened or merged. Its action is run_test, which starts the test --test names, or run_agent, which starts Revyl's agent on --prompt (Run Revyl agent from an automation). An automation is addressed by its name or ID, and a trigger or run by its ID. Every revyl automation command takes --json.

# Automations
revyl automation create --name nightly-smoke --action-type run_test --test login-flow  # Comes with its manual trigger
revyl automation create --name checkout-canary --action-type run_test --test <test-id> --no-enable  # Create it off
revyl automation create --name nightly-triage --action-type run_agent --prompt-file triage.md  # Each run starts Revyl's agent
revyl automation create --name release-smoke --action-type run_test --test login-flow --tag smoke --tag release  # Tag it as you create it
revyl automation update nightly-triage --run-as organization  # Whom its agent runs act as
revyl automation update nightly-triage --repository-url https://github.com/acme/shop --repository-branch main
revyl automation list                                         # Pinned first, then newest first, 25 per page
revyl automation list --cursor <next-cursor>                  # The next page, with the cursor the last page printed
revyl automation list --only-enabled --trigger-type schedule --search smoke
revyl automation list --only-pinned --tag smoke --tag release # Pinned ones with either tag
revyl automation get nightly-smoke                            # On or off, pinned, tags, action, triggers with their IDs and next fire times, last run
revyl automation update nightly-smoke --name morning-smoke    # Change the name, description or action
revyl automation enable nightly-smoke                         # Turn on; schedules count from now
revyl automation disable nightly-smoke                        # Turn off; queued runs are cancelled
revyl automation pin nightly-smoke                            # List it first, for everyone in your organization
revyl automation unpin nightly-smoke
revyl automation update nightly-smoke --add-tag nightly --add-tag smoke  # Tag it
revyl automation update nightly-smoke --remove-tag nightly    # Untag it
revyl automation delete nightly-smoke --yes                   # --yes is required when no terminal is attached
revyl automation trigger-types                                # Every trigger type and whether your organization can use it
revyl automation action-types                                 # The action types your organization can use

# Triggers
revyl automation trigger add nightly-smoke --trigger-type schedule --cron "0 9 * * 1-5" --timezone America/Los_Angeles
revyl automation trigger add nightly-smoke --trigger-type incoming_webhook   # Prints the URL once
revyl automation trigger add nightly-smoke --trigger-type github_pull_request_merged \
  --pull-request-repository acme/mobile-app --pull-request-base-branch main
revyl automation trigger get <automation-trigger-id>
revyl automation trigger update <automation-trigger-id> --cron "30 8 * * 1-5"
revyl automation trigger remove <automation-trigger-id>
revyl automation trigger rotate-incoming-webhook-url <automation-trigger-id>  # The old URL stops working at once

# Webhook body filters and event grouping
revyl automation trigger update <automation-trigger-id> --request-body-contains production --request-body-excludes dry_run
revyl automation trigger update <automation-trigger-id> --request-body-matches '(?i)"env":\s*"(production|staging)"'
revyl automation trigger update <automation-trigger-id> --remove-filter request_body_contains_none_of
revyl automation trigger update <automation-trigger-id> --group-events-max-count 10 --group-events-max-wait 5m \
  --group-events-quiet-period 30s --group-events-by header:X-Deploy-Source   # One run per batch of POSTs
revyl automation trigger update <automation-trigger-id> --no-group-events      # One run per POST again

# Runs
revyl automation run start nightly-smoke                      # Start a run now and block until it ends
revyl automation run start nightly-smoke --idempotency-key "$CI_PIPELINE_ID" --no-wait  # Print the run ID and return
revyl automation run start nightly-smoke --wait-timeout 30m   # Stop waiting after 30 minutes
revyl automation run wait <automation-run-id>                 # Block until runs end, whichever trigger started them
revyl automation run get <automation-run-id>                  # Status, trigger event, and the test execution or agent run it started
revyl automation run list --automation nightly-smoke --run-status failed
revyl automation run list --produced-agent-run-id <agent-run-id>  # The run that started this agent run
revyl automation run cancel <automation-run-id>               # Also cancels the test execution, or stops the agent run, it started
revyl automation run close-event-collection <automation-run-id>  # Run a collecting batch now
revyl automation run list --automation nightly-smoke --run-status filtered_out

# Keep an automation in Git
revyl automation get nightly-smoke --json > nightly-smoke.json
revyl automation apply nightly-smoke.json                     # Create or update it, triggers included
  • trigger get, trigger update and trigger remove take the trigger ID that revyl automation get prints. Every automation keeps its manual trigger, which run start uses even while the automation is off.
  • An automation's tags are your organization's tags, the ones tests use (revyl tag). --tag, --add-tag and --remove-tag take one name each and repeat for several. Names match in any case, so --add-tag Smoke puts the existing smoke tag on it; a name your organization doesn't have yet creates the tag. --remove-tag takes a tag off the automation and keeps the tag; removing a tag it doesn't have changes nothing. list --tag matches automations with any of the tags you name, and with --only-pinned, only the pinned ones among them.
  • A pin is one for the whole organization, not per member: list shows pinned automations first, each group newest first, and pin prints Automation <automation-name> is pinned for everyone in the organization. Every role except Viewer can pin, unpin and tag an automation, including a run_agent automation that runs as another member.
  • A schedule's --cron has five fields (minute, hour, day of month, month, day of week) and is read in --timezone. enable counts schedules from now, so nothing fires for the time the automation was off.
  • An incoming webhook URL holds a secret token, which is its only authentication, so Revyl prints it only once: when trigger add or apply adds the trigger, and when trigger rotate-incoming-webhook-url replaces it. With --json, trigger add and trigger rotate-incoming-webhook-url print it as incoming_webhook_url. Each POST, with any body up to 256 KiB and an optional Idempotency-Key header, answers 202 with automation_run_id and an outcome of accepted, or duplicate for a key it has seen. run get shows the body, JSON or text, as the run's event. A credential Revyl recognizes anywhere in it, such as a GitHub, GitLab or Slack token, an AWS access key ID, a JWT, or an OpenAI, Anthropic, Google, Stripe, npm or Revyl API key, is masked as •••••• before the event is stored. Any other secret, such as an AWS secret access key or a password, is stored and shown as sent. While the automation is off, the URL answers 404.
  • The GitHub pull request triggers need the Revyl GitHub App (revyl github connect). A pull request has to pass every filter you set (--pull-request-repository, --pull-request-base-branch, --pull-request-label, --pull-request-author); within one filter, any of its repeated values passes.
  • Webhook body filters decide which POSTs start a run. A body has to contain one of the --request-body-contains phrases anywhere in it, none of the --request-body-excludes phrases, and match the --request-body-matches RE2 pattern. Phrases ignore case, up to 20 of 1 to 200 characters each; the pattern is case-sensitive unless it opens with (?i), and 1 to 1,000 characters. A pattern RE2 can't compile is refused with The request body pattern isn't valid RE2: <reason>. trigger add and trigger update take the filter and grouping flags together. On trigger update, each filter flag replaces that filter, and --remove-filter <filter-type> drops one.
  • A POST that a filter rejects still answers 202, with outcome filtered_out and the filtered_out_by_filter_type that rejected it, such as request_body_contains_none_of. Filters run before grouping, so such a POST needs no group-by value. It starts nothing, and is kept as a run in status filtered_out, which run get shows with a Filtered out by line and run list --run-status filtered_out lists.
  • Webhook and GitHub pull request triggers can group events into one run. --group-events-max-count (2 to 100) and --group-events-max-wait (10s to 1h) turn grouping on, and --group-events-quiet-period (10s up to the max wait) is optional. A batch closes when it holds the event count, at the max wait after its first event, or once no event arrives for the quiet period, whichever comes first, and its run then starts the action once. Until then the run's status is collecting_events, and run get shows its Trigger events count and a Collects events until line; run list --run-status collecting_events lists such runs. Each POST in a batch answers 202 accepted with the batch's automation_run_id. A batch also closes before an event that would take its bodies past 1 MiB, which starts the next batch.
  • --group-events-by keeps one batch per distinct value, and takes up to 4 selectors, one per repeated flag: a JSON pointer into the body, such as /source, or header:<header-name>, matched in any case, for a webhook; repository_full_name, base_branch_name, author_github_login or pull_request_number for a GitHub trigger. A POST missing a group-by value, or whose value isn't a string, number or boolean of at most 1,024 bytes, answers 422 with a message naming it, such as The request has no group-by request header X-Deploy-Source. A run_agent automation groups pull requests only by the fields that keep its checkout to one commit (Check out a repository).
  • run close-event-collection closes a collecting batch now and prints its run, now queued; on a run that isn't collecting it exits 1 with Automation run isn't collecting events; it's <run-status>. run cancel cancels a collecting batch with its events. Changing or removing a trigger closes the batches it's collecting, which then run; turning the automation off or deleting it cancels them. run start never joins a batch.
  • apply reads YAML or JSON, or - for stdin, in the shape get --json prints. It updates the automation with the file's id, else the one with its name, and creates one when there is none; fields Revyl sets itself, such as last_run and is_pinned, are ignored. The file is the whole automation: a field it leaves out takes its default (is_enabled is true), and an existing trigger it leaves out is removed, except the manual trigger.
  • apply never pins or unpins. A file with a tags key replaces the automation's tags with its list, which takes names (tags: [smoke, nightly]) or the objects get --json prints; tags: [] removes every tag. A file without the key leaves the tags as they are. get --json always prints tags, so applying an older export removes tags added since.
  • run start and run wait wait as long as the run takes, unless --wait-timeout limits them; inside an agent sandbox it defaults to 110m. A run start retried with the same --idempotency-key waits for the run that key already started instead of starting a second one.
  • run start and run wait exit 0 when the run completed, meaning the test ran, whether it passed or failed, or the agent run completed; 1 when the run failed, was cancelled or was filtered out; 124 when --wait-timeout elapsed while the run keeps going; and 130 when interrupted. After 124 or 130, run wait <automation-run-id> picks the wait back up with the run ID the command printed.
  • To act on the test's verdict, pass the produced_test_execution_id that run get --json prints to revyl test report <test-execution-id> --json and read success. For a run_agent run, pass its produced_agent_run_id to revyl agent get <agent-run-id> --json and read final_message and agent_run_output.
  • Whom a run_agent automation's runs act as, what each trigger checks out, the message the agent receives and the failure codes are in Run Revyl agent from an automation.

GitHub PR Automation

Connect the Revyl GitHub App and configure PR automation for the project root selected by the nearest .revyl/config.yaml.

revyl github connect                     # Install or verify GitHub repository access
revyl github connect --no-open --no-wait --json  # Print the install link and return (agents, remote shells)
revyl github status                      # Show the GitHub App connection status
revyl github status --json               # Same facts as one JSON object on stdout
revyl github status --repo owner/name    # Name the GitHub repository instead of reading origin
revyl github setup                       # Configure the selected project root
revyl -C apps/mobile github setup        # Configure a nested monorepo project
  • github connect only installs or verifies repository access. It never edits or publishes project configuration. From a coding agent, --no-wait --json prints the install link as install_url and returns at once instead of waiting; --no-open also skips opening a browser. Confirm the install with github status. See the CLI's GitHub status guide.
  • github status also reports whether the current Git repository (from its GitHub origin) is granted to the installation, even before a .revyl/config.yaml exists, so a fresh checkout can tell whether it still has to be added to the GitHub App. --json prints one stable object on stdout; the keys and status values are documented in the CLI's GitHub status guide.
  • github setup guides the selected project through a managed-profile or finished-artifact CI-upload policy, writes pr_review, and validates the project config. Under manual authority, it confirms publication and publishes the same complete aggregate as revyl config push. Under Git authority, it prepares the designated file for commit without publishing.
  • GitHub installation is repository-wide, while setup, publication, authority, and reconciliation are project-root-specific. Run setup separately from each intended root in a monorepo.
  • Ordinary config push uses an absent-or-hash precondition and is rejected when the project is managed from its designated config on the repository's default branch. github setup prepares the designated file for commit in that mode. Run revyl config validate and commit the file, or use revyl config push --force for a deliberate one-time publication that keeps management from the repository's default branch enabled.
  • A successful reconciliation from the repository's default branch makes that project Git-owned. Fetch or validation failures preserve its current state. Removing the designated file returns only that project to manual authority while retaining its last accepted aggregate and automation; it does not delete the project.

Project roots are immutable. Manual projects can be deleted from the GitHub integration in the web app and recreated at the correct root. Git-owned projects must first return to manual authority through the designated-file flow above. Deletion preserves the repository connection, GitHub installation, repository report destination, historical results, and already-frozen review and build work, which may finish. Pending Cursor proof that has not launched fails closed because deletion removes its live authorization. Deleting the last project opens the dashboard's form for a new project root. There is no CLI project-delete command; after creating a same-root replacement, use revyl -C <replacement-root> config pull to back up and replace a stale local file. Pull adopts a replacement automatically only when exactly one active project owns the old root; otherwise Revyl does not assume where the replacement belongs.

The standalone github init and github push commands no longer exist; config push is the direct publication command and never scaffolds. See the GitHub integration for the pr_review schema and the exact server-stored configuration groups.

GitLab integration

revyl gitlab connect                     # Enter an automation token at a hidden prompt
revyl gitlab connect --instance https://gitlab.example.com
revyl gitlab connect --token-stdin       # Read a token from an existing secure stdin source
revyl gitlab status --json               # API, repository, project, and webhook state
revyl gitlab setup                       # Interactive project configuration and webhook check
revyl -C apps/mobile gitlab setup        # Target a nested project

GitLab requires an automation token with Developer access and api scope. Connection management uses the active Revyl organization. Token replacement uses the same connect command. Setup preserves Git-managed authority and checks authenticated webhook delivery independently of API access. A GitLab Maintainer or Owner installs the project webhook manually.

Setup checks live repository access before prompting to select or create apps.

Status preserves API, repository, and webhook facts when project configuration cannot be read, and reports the project-specific failure in project_error.

See GitLab integration for the connection tutorial. For a GitLab instance Revyl can't connect to, start proofs yourself with revyl agent proof.

Agent runs

revyl agent proof [app]        # Start a proof of changes from a prompt
revyl agent status <run-id>    # Current state or final result of a proof run
revyl agent cancel <run-id>    # Stop a queued or running proof run

Main revyl agent proof flags:

--prompt "<text>"              # Prompt text
--prompt-file prompt.md        # Read the prompt from a file, or - for stdin
--build-id <id>                # Prove an exact uploaded build
--json                         # Print the result as one JSON object
--no-wait                      # Return as soon as the run is queued

See Prove a change without a connected repository.

The other revyl agent commands start and follow agent runs, turns of Revyl's agent. A proof run and an agent run are different runs: status and cancel take a proof run's ID, and get and stop an agent run's. A subagent is a run that another run started, and its parent_agent_run_id names that run.

revyl agent run --prompt "<text>"              # Start a turn of Revyl's agent and wait for it
revyl agent run --conversation-id <agent-conversation-id> --prompt "<text>"  # Add a follow-up turn
revyl agent wait <agent-run-id>                # Wait for runs to end: exits 0 completed, 2 stopped, 3 failed
revyl agent get <agent-run-id>                 # Status, prompt, final message and output
revyl agent list                               # Runs you can see, newest first
revyl agent stop <agent-run-id>                # Stop a run and everything under it
revyl agent resources <agent-run-id>           # What a run and its subagents created
revyl agent evidence <reference>               # Resolve the resource a revyl: reference names
revyl agent templates                          # Agent templates a run can use

Every flag, the run object, exit codes, errors and the HTTP API are in the Agent runs reference; a first run is in Run Revyl's agent.

ShipTok

revyl shiptok upload ./demo.mp4                  # Upload a video and print its #shiptok line
revyl shiptok upload ./demo.mov --pr 42          # Also have Revyl's GitHub App post it on pull request 42
revyl shiptok upload ./demo.mp4 --repo owner/repository --pr 42 --json

revyl shiptok upload <file> uploads a video to Revyl for a GitHub repository and prints #shiptok <link>, the line ShipTok plays as a tagged video when it's in a pull request's description or comment. The workflow is in Publish videos to ShipTok, and who can open the link is in Who can watch a Revyl-hosted video.

Argument or flagTypeDefaultDescription
<file>pathrequiredThe video: a non-empty .mp4 or .mov file (the extension in any case) of at most 104,857,600 bytes (100 MB).
--repostringthe GitHub repository of the current directory's origin remoteThe repository the video belongs to, as OWNER/REPO. Revyl's GitHub App must be installed on it through an installation your Revyl organization connected.
--printegernoneA pull request in that repository, from 1 to 2147483647. Revyl's GitHub App comments on it with the hidden <!-- shiptok:video --> tag and the link, or updates the first ShipTok comment it posted there.
--jsonbooleanfalseGlobal flag. Print the upload's result as one JSON object on standard output instead of the #shiptok line, without the progress and comment lines on standard error.
-q, --quietbooleanfalseGlobal flag. Skip the progress and comment lines on standard error.

The upload needs the CLI signed in (Authentication) with the Member role or higher. It prints:

  • Standard output: #shiptok https://backend.revyl.ai/api/v1/shiptok/videos/<token>.mp4, ending in .mov for a MOV file, where <token> is the upload's 43-character token. The link doesn't expire.
  • Standard error: Uploading ShipTok video..., and with --pr, Revyl's GitHub App posted its ShipTok comment: <comment-url>, or edited instead of posted when it updated its earlier comment.
  • With --json: the keys video_id (a UUID), url (the link), comment_action (posted or edited, or none without --pr or when the comment failed), comment_url (only when the comment was posted or edited) and comment_error (github_unavailable or comment_recording_failed, only when the comment failed).

The command exits with code 0 when the upload and any comment succeed, and 1 on any error. Errors print to standard error as Error: <message>. Standard output stays empty on an error, except when only the comment failed: then the #shiptok line, or the JSON object, is already on standard output. Each run uploads a new copy with its own link, so running it again after a failure never changes an earlier link.

The table lists the errors this command's own checks and requests produce. Any other failure, such as an expired sign-in or a lost connection, prints its own message. The CLI waits up to 10 minutes for the upload request to finish.

MessageCauseFix
no origin remote here: run this in a checkout of the GitHub repository, or pass --repo OWNER/REPOThe current directory isn't a Git checkout with an origin remote.Run it in a checkout of the repository, or pass --repo.
the origin remote isn't a github.com repository: pass --repo OWNER/REPOorigin points somewhere other than github.com.Pass --repo.
--repo must name a GitHub repository in OWNER/REPO form--repo isn't OWNER/REPO.Pass the repository as OWNER/REPO.
accepts 1 arg(s), received <n>The command got no file, or more than one.Pass one video file.
invalid argument "<value>" for "--pr" flag: strconv.ParseInt: parsing "<value>": invalid syntax--pr isn't a whole number.Pass the pull request's number.
--pr must be between 1 and 2147483647--pr is 0, negative or too large.Pass the pull request's number.
ShipTok uploads require an MP4 or MOV fileThe file's extension isn't .mp4 or .mov.Export the video as MP4 or MOV.
ShipTok uploads require a non-empty regular fileThe file is empty or isn't a regular file.Pass the video file itself.
ShipTok videos must be at most 100 MB (104857600 bytes)The file is larger than 104,857,600 bytes.Shorten or compress the video.
inspect video: stat <file>: no such file or directoryNo file exists at that path.Check the path.
not authenticatedThe CLI isn't signed in.Run revyl auth login, or set REVYL_API_KEY.
upload ShipTok video: An organization-scoped credential is requiredThe credential isn't tied to one Revyl organization.Sign in with revyl auth login, or use an API key created in the organization.
upload ShipTok video: Upload with a person's sign-in or an API key, not a runtime credentialThe CLI is using a credential Revyl issued to a run, such as a proof run's or a cloud agent's, which can't upload ShipTok videos.Sign in with revyl auth login, or set REVYL_API_KEY to an API key created in the organization.
upload ShipTok video: GitHub repository is not connected to this organizationRevyl's GitHub App isn't installed on the repository, or its installation isn't connected to the Revyl organization you're signed in to.Connect it as Connect GitHub describes, and check with revyl github status --repo <owner>/<repository>.
upload ShipTok video: GitHub pull request was not found--pr names no pull request in the repository.Pass the pull request's number.
upload ShipTok video: This action requires Member role or higher. Your current role is Viewer (read-only).You're a Viewer in the Revyl organization.Ask an organization admin for the Member role.
upload ShipTok video: Too many requests. Please try again later.Your Revyl organization sent more than 60 upload requests, rejected ones included, within an hour of the first of them.Wait until that hour ends, at most an hour, then run it again.
upload ShipTok video: Upload an MP4 or MOV videoThe file isn't an MP4 or MOV video with a video track, for example a still image, an audio-only file, or a recording that stopped before it was saved.Export the video again as MP4 or MOV.
upload ShipTok video: Video upload timed outSending the video took longer than 5 minutes.Run it again on a faster connection, or upload a smaller file.
upload ShipTok video: GitHub target verification is unavailable, upload ShipTok video: GitHub publication is unavailable, upload ShipTok video: Video storage is unavailable or upload ShipTok video: Video links are unavailableGitHub or Revyl couldn't complete the upload.Run it again later.
video uploaded, but GitHub comment failed: github_unavailableThe video uploaded and its result printed, but GitHub refused or failed the comment, couldn't be reached, or took longer than 2 minutes, so it may still appear.Check the pull request, and paste the printed line or run it again if no ShipTok comment from Revyl's GitHub App is there.
video uploaded, but GitHub comment failed: comment_recording_failedThe video uploaded and its result printed, and the comment may have posted, but Revyl couldn't record it, so the result has no comment_url.Check the pull request, and paste the printed line or run it again if no comment is there.
video uploaded, but Revyl didn't confirm its GitHub comment on pull request #<pull-request-number>The video uploaded and its result printed, but the Revyl backend's answer said neither that the comment was posted or edited nor why it failed.Check the pull request, and paste the printed line or run it again if no ShipTok comment from Revyl's GitHub App is there.

Device Management

# Session lifecycle
revyl device start                             # Start a cloud device session (defaults to iOS)
revyl device start --platform android --open   # Start and open viewer in browser
revyl device start --platform ios --open=false  # Start without opening the viewer
revyl device start --platform ios --app-url https://example.com/app.ipa # Start a raw session with a preinstalled app
revyl device start --platform ios --launch-var API_URL --launch-var DEBUG # Stored variable keys (UUIDs also accepted)
revyl device start --platform ios --launch-arg-set AuthTestArgs --launch-arg=--debug # Stored set, then inline token
revyl device start --platform ios --no-inherited-launch-vars # Ignore inherited launch-variable IDs
revyl device start --platform ios --session-profile none # Start without the project's default session profile
revyl device start --device-name revyl-ios-iphone  # Use a named device preset
revyl device start --device-model "iPhone 16" --os-version "iOS 18.5"  # Specific model + runtime
revyl device start --device-model "iPhone 16"  # Newest runtime that model supports (announced on stderr)
revyl device start --platform ios --font-size ax-xxxl --appearance dark # Start with a text size and appearance
revyl device start --platform android --bold-text --display-size largest # Start with accessibility settings
revyl device stop                              # Stop your only live session (name one with -s when several are live)
revyl device stop --all                        # Stop all sessions
revyl device list                              # List active sessions, including ones still starting
revyl device use <index>                       # Use this session for commands in this directory that name none
revyl device attach <session-id>               # Attach to an existing session by ID
revyl device info                              # Show session details (includes `whep_url` in JSON when available)
revyl device history                           # Show recent device session history
revyl device doctor                            # Run session diagnostics
revyl device targets                           # List available device models and OS versions
revyl device targets --platform android --json # Filter / JSON output

# Interaction (use --target for AI grounding, or --x/--y for coordinates)
revyl device tap --target "Login button"                         # AI-grounded tap
revyl device tap --x 200 --y 400                                 # Coordinate tap
revyl device double-tap --target "item"                          # Double-tap
revyl device long-press --target "icon" --duration 1500          # Long press (ms)
revyl device type --target "Email field" --text "user@test.com"  # Type text
revyl device swipe --target "list" --direction down              # Swipe gesture
revyl device swipe up                                            # Swipe from the screen center
revyl device scroll down --amount 600                            # Web: scroll toward later content
revyl device scroll up --amount 300 --target "Results list"       # Web: scroll a nested region
revyl device select "Canada" --target "Country"                   # Web: exact native select option label
revyl device drag --start-x 100 --start-y 200 --end-x 300 --end-y 400  # Drag

# Utility
revyl device screenshot                        # Capture screenshot
revyl device screenshot --out screen.png       # Save to file
revyl device wait --duration-ms 1000           # Fixed wait on the session
revyl device pinch --x 200 --y 400 --scale 1.5 # Pinch / zoom gesture
revyl device clear-text --target "Search"      # Clear text in a field
revyl device back                              # Android back / provider back action
revyl device key --key ENTER                   # Submit the focused field
revyl device key Escape                        # Dismiss a dialog
revyl device key "Shift+Tab"                    # Keyboard reachability
revyl device key "Meta+K"                       # Shortcut
revyl device key "Alt+ArrowLeft"                # Phones: move the cursor one word left
revyl device shake                             # Trigger shake gesture
revyl device home                              # Return to home screen
revyl device open-app --app settings           # Open a system app
revyl device navigate --url https://example.com # Open URL or deep link
revyl device set-location --lat 37.77 --lon -122.42 # Set GPS location
revyl device set-font-size ax-xxxl             # Set the text size (iOS content size code, or an Android scale)
revyl device set-appearance dark               # Switch between light and dark appearance
revyl device a11y set --bold-text --reduce-motion # Change accessibility settings on a running session
revyl device a11y get --json                   # Read text size, appearance and accessibility settings
revyl device a11y reset                        # Return them all to the defaults
revyl device download-file --url https://example.com # Download file to device
revyl device download-file --url https://example.com --filename report.pdf # Override destination filename
revyl device install --app-url <url>           # Install app from URL (keeps the data of an installed copy)
revyl device install --app-url <url> --bundle-id com.app.id --clean # Uninstall first, so the app starts with fresh data
revyl device uninstall                         # Uninstall the session app and delete its data
revyl device uninstall com.app.id              # Uninstall a specific app and delete its data
revyl device launch                            # Launch the app this session installed
revyl device launch --bundle-id com.app.id     # Launch a specific installed app (on iOS, restarts it if already running)
revyl device launch --launch-env API_ENV=staging # Restart the app with a launch environment value for this launch only
revyl device launch --launch-arg=-onboardingComplete --launch-arg=YES # iOS: restart the app with argument tokens for this launch only
revyl device kill-app                          # Kill the current installed app
revyl device permissions set --bundle-id com.app.id location=allow motion=allow # Pre-grant OS permissions
revyl device push --title "Order shipped" --body "Track it now" # Build and deliver a simple notification
revyl device push apns payload.apns            # Deliver a raw APNs payload file

# Live step execution on an active session
revyl device instruction "Open Settings and tap Wi-Fi"           # Execute one instruction step
revyl device validation "Verify the Settings title is visible"   # Execute one validation step
# A false/missing validation verdict exits non-zero; --json stdout remains parseable with success=false
revyl device extract "Extract the visible account email" --variable-name account_email # Execute one extract step
revyl device code-execution script_123                          # Execute one code-execution step

# UI inspection
revyl device hierarchy                         # Dump UI hierarchy (Android XML / iOS JSON)

# Live observability (perf, network, logs) and post-session artifacts
revyl device perf                              # Stream CPU% / memory / FPS from active session
revyl device requests                          # Stream live network requests (iOS and Web)
revyl device logs                              # Stream captured device logs (logcat / OSLog)
revyl device logs --no-follow                  # Every captured log line so far, then exit
revyl device logs --json | jq -r '.items[]'    # JSON per poll; pipe to jq for scripting
revyl device report                            # View the report for the active session
revyl device report --session-id <uuid>        # View report by session ID
revyl device report --artifact perf --download # Download a session artifact (perf|network|trace)

revyl device start accepts --app-id together with --build-version-id when that build belongs to the app, and names the owning app when it doesn't. --app-url installs the file at that URL, so it can't be combined with either. revyl device type needs --target or --x/--y because the device focuses a field by tapping it; revyl device tap needs one as well. --x/--y are in the device's own units, measured from the top-left corner: points on iOS (half or a third of the screenshot's pixels), pixels on Android and Web. On iOS and Android, a coordinate outside the screen size the session reports is refused before it is sent.

Start a Web session with --platform web and the Web app's ID. Without --build-version-id or --url, it opens the newest Web build on --branch, or on the app's default branch:

revyl device start --platform web --app <app-id>                    # Newest Web build, desktop viewport
revyl device start --platform web --app <app-id> --url <https-url> --commit <sha>  # Create or reuse a URL build first
revyl device start --platform web --app <app-id> --viewport 390x844 # WIDTHxHEIGHT; default 1280x800
revyl device start --platform web --app <app-id> --cookies-file cookies.json  # Storage state or a cookie array, set before the first navigation

device key accepts Enter (Return), Backspace, Tab, Escape (Esc), Delete, Space, the four Arrow keys, Home, End, PageUp, and PageDown. Chords use distinct Ctrl, Alt, Meta, or Shift modifiers joined with +, followed by a named key or one ASCII letter/digit. Bare letters/digits and function keys are rejected. iOS simulators and Android emulators accept the same keys and chords as Web, sent as a hardware keyboard: Meta is Command and Alt is Option on iOS, so use Meta+A there and Ctrl+A on Android. On phones a bare Delete keeps its Backspace alias, while Delete in a chord is forward delete. Physical iPhones and devices on an older worker accept only Enter and Backspace; other keys return an error before anything is sent.

Web-only device scroll accepts up/down/left/right and --amount 1–16384 pixels (default 600), optionally at --target or paired --x/--y. Down/right move toward later content, and Web swipe uses the same page directions; native iOS and Android swipes retain finger-motion directions. With no target it uses the viewport center. Web-only device select requires a target or paired coordinates and matches the exact visible label of one enabled native HTML select option, not its value attribute. On desktop Web, opening a native single-choice dropdown uses Chromium's in-page picker so option taps reach the dropdown instead of the page underneath; the original appearance returns when the picker closes. All accept -s/--session-id and --json; unsupported phone actions fail without dispatch.

See Live Observability for the full reference on perf, requests, logs, report --artifact, network, and --device-name presets.

For raw device sessions, URL-based app flows work in two modes:

  • revyl device start --app-url ... preinstalls the app before the session is ready.
  • To inject launch config at boot, use --launch-var <key-or-id> for stored environment values, --launch-arg-set <name-or-id> for stored iOS argument sets, and --launch-arg=<token> for non-secret inline iOS tokens.
  • To change launch values without starting a new session, pass repeatable --launch-env KEY=VALUE and, on iOS, --launch-arg=<token> (one token per flag) to revyl device launch. The app restarts with them on iOS and Android for that launch only: --launch-env values replace the session's for the same key and the session's other values stay, and --launch-arg tokens follow the session's. Android refuses --launch-arg. The next revyl device launch without them restarts the app with the session's own values. These inline values are non-secret and show in your shell history; pass secrets with --launch-var when you start the session. A session on an older device worker returns an error before anything is sent; set the values on revyl device start instead.
  • revyl device install --app-url ... installs into an already running raw session. An install over an installed copy keeps the app's data; add --clean to uninstall it first, or run revyl device uninstall. On iOS both also reset the simulator keychain. When the device's worker predates uninstall, --clean clears the installed app's data instead and reports clean_method: clear_data. If the uninstall itself fails, --clean stops without installing; run it again.
  • revyl device download-file --url ... only downloads the file to device storage; it does not install the app.

Live Fold State

revyl device set-fold-state folded --session-id YOUR_SESSION_ID --json
revyl device set-fold-state unfolded -s 0

Accepts exactly folded or unfolded on a running multi-display iOS device (currently iPhone Duo). Uses normal -s / --session-id / REVYL_SESSION_ID targeting, or active-session selection when omitted. No YAML test is created or saved. Unsupported devices return an actionable error.

The worker must confirm completion before the command succeeds. JSON success is {"fold_state":"folded","status":"set"}; failures exit nonzero without success output. The standard 30-second request timeout applies. Fold actions are never automatically retried; after an unconfirmed result, inspect the same session in the viewer or with device screenshot before another fold action.

To start an iPhone Duo already folded or unfolded, pass --fold-state to revyl device start with --device-model "iPhone Duo". The device folds or unfolds before Revyl launches the app, so the app's first screen opens on that display. Other devices refuse the flag before the session starts.

Live Orientation

revyl device set-orientation landscape --session-id YOUR_SESSION_ID --json
revyl device set-orientation portrait -s 0

Rotates a running iOS or Android device without starting a new session; the app keeps its state. iOS takes portrait or landscape. An Android device that supports exact rotation also takes landscape_left, landscape_right, and upside_down. --orientation on revyl device start sets the first orientation, and set-orientation changes it at any point after. On an iPhone Duo, unfolded in portrait, the inner display is wider than it is tall, and landscape stands it upright. JSON success is {"orientation":"landscape","status":"set"}. The screen size changes, so take a new screenshot before you tap by coordinates.

Text Size And Appearance

revyl device start --platform android --font-size 2.0 --appearance dark
revyl device set-font-size ax-xxxl --session-id YOUR_SESSION_ID --json
revyl device set-appearance light -s 0

Set the system text size and light or dark appearance of an iOS simulator or Android emulator without opening the Settings app. On iOS, --font-size and set-font-size take a content size code: xs, s, m, l, xl, xxl, xxxl, ax-m, ax-l, ax-xl, ax-xxl, or ax-xxxl, where l is the default size and ax-xxxl the largest. No iOS code is exactly 200% of the default. Body text is 17 pt at l, 33 pt at ax-l (about 194%), 40 pt at ax-xl (about 235%), and 53 pt at ax-xxxl (about 312%), per the Dynamic Type sizes in Apple's Human Interface Guidelines. On Android they take a scale from 0.5 to 2.0, where 1.0 is the default size and 2.0 is exactly 200% and the largest. For a 200% text-size check, use 2.0 on Android; on iOS ax-xl is the first code at or above 200% for body text, and ax-l is just under. Each platform refuses the other's form with an error that names what to pass instead. A start that names no platform, and no app, build or device that sets one, is an iOS start. --appearance and set-appearance take light or dark. The CLI refuses any other value before it starts or contacts a device.

The start flags apply before Revyl launches the app, so the app's first screen renders with them, and they last for that session only. A physical iPhone starts with its own settings: Revyl skips these flags there and the report records none of them. Web sessions and sessions inside a computer refuse both flags. The session report shows the values a session started with under Info, in Start Settings, and records changes made during the session. revyl device report --json lists the same values in launch_start_settings, each with its kind, key, label, and value, and leaves the field out when the session set none.

The commands use normal -s / --session-id / REVYL_SESSION_ID targeting, or active-session selection when omitted. They exit 0 only when the device reports the change applied; a failure exits nonzero and prints nothing on stdout. With --json, set-font-size ax-xxxl prints:

{
  "font_size": "ax-xxxl",
  "status": "set"
}

set-appearance light prints the same shape with "appearance": "light". Web sessions and physical iPhones refuse both commands.

Accessibility Settings

revyl device start --platform android --bold-text --reduce-motion --display-size largest --increase-contrast
revyl device a11y set --font-size 2.0 --bold-text --display-size largest -s 0
revyl device a11y set --reduce-motion=false --session-id YOUR_SESSION_ID --json
revyl device a11y get --session-id YOUR_SESSION_ID --json
revyl device a11y reset -s 0

Start a session with accessibility settings on, or change them on a running iOS simulator or Android emulator. --increase-contrast is Increase Contrast on iOS and high contrast text on Android. --bold-text (Android 12, API 31, or later), --reduce-motion and --display-size are Android settings. The CLI refuses them for an iOS session, whatever their value, because the simulator offers no way to set them, and the API refuses an iOS start that sets them with a 422 and the same message. --display-size takes small, default, large or largest, the steps Android's Display size setting offers. Display size scales everything on screen, not only text, and which steps exist depends on the screen: Android computes them from each screen's density, so large is the first step above the default and largest the biggest that screen allows. The CLI refuses a bad value or an unsupported platform before it starts a device. The start flags follow the same rules as --font-size: they apply before the app launches, last for that session only, are skipped on a physical iPhone, which starts with its own settings and records none of them, and are refused by Web sessions and sessions inside a computer.

Android offers large and largest only on a screen big enough for a larger step, so a small screen can have neither. Every other setting still applies when one fails. On a running session, revyl device a11y set --bold-text --display-size largest --increase-contrast then turns on bold text and increase contrast and fails with an error that names what applied and the steps the screen has: setting the accessibility settings failed: set bold text and increase contrast, but setting display size failed: This screen has no largest display size; Android offers default, small here. A start does not fail this way: the worker logs each setting that failed and starts the session with every other setting applied, while the report still lists the display size the start asked for. Check with revyl device a11y get when it matters.

The report's Start Settings lists them as Bold text, Reduce motion, Display size and Increase contrast. For an Android session started with --font-size 2.0 --appearance dark --bold-text --display-size largest, revyl device report --json includes:

"launch_start_settings": [
  {"kind": "font_size", "key": "initial_font_size", "label": "Font size", "value": "2.0"},
  {"kind": "device_setting", "key": "initial_appearance", "label": "Appearance", "value": "dark"},
  {"kind": "device_setting", "key": "initial_bold_text", "label": "Bold text", "value": "On"},
  {"kind": "device_setting", "key": "initial_display_size", "label": "Display size", "value": "largest"}
]

Each entry has a kind, a key, a label and a value. These are all the keys a start can record:

KeyKindValue
initial_localelocaleThe locale identifier as given, such as fr_FR
initial_locationlocationLatitude and longitude with six decimals, such as 37.774900,-122.419400
initial_orientationorientationportrait or landscape
initial_font_sizefont_sizeAn Android scale such as 2.0, or an iOS content size code such as ax-xl
initial_fold_statefold_statefolded or unfolded, on supported foldables only
initial_appearancedevice_settinglight or dark
initial_bold_textdevice_settingOn, Android only
initial_reduce_motiondevice_settingOn, Android only
initial_display_sizedevice_settingsmall, default, large or largest, Android only
initial_increase_contrastdevice_settingOn

The labels are Locale, Location, Orientation, Font size and Fold state, and a device setting's label is its key without initial_, such as Bold text. A setting the session did not set, or an on/off setting it left off, has no entry; launch_start_settings is missing when the session started with none, and a physical iPhone records none. An entry records what the start asked for, so read revyl device a11y get for what the device holds now. revyl device report --no-steps --json keeps launch_start_settings and leaves out only the steps and their actions.

a11y set also takes --font-size and --appearance with the same values as set-font-size and set-appearance, and changes only the settings you name; --bold-text=false turns a setting off. The CLI looks up the session first, then refuses any setting its platform cannot apply before it contacts the device. With --json it prints "status": "set" and each setting it changed. When a setting fails, the CLI still applies the others, and the error names each one that failed and each one that applied. a11y get --json prints what the device reports now:

KeyTypenull when
font_sizestringNever: a scale such as "2.0" on Android, a content size code such as "ax-xl" on iOS
appearancestringNever: light or dark
bold_textbooleanOn an iOS simulator
reduce_motionbooleanOn an iOS simulator
display_sizestring: small, default, large or largestOn an iOS simulator, and on Android when the density matches none of the steps
display_density_dpiintegerOn an iOS simulator
increase_contrastbooleanNever

a11y reset returns all of them to the defaults; an Android emulator also resets them, and any locale the session changed, when the session stops. Physical iPhones and Web sessions refuse the a11y commands, and a session on a worker that predates these settings refuses them with an error that says to start a new session.

Live Stream URL

Every active session streams the device screen over WebRTC. The --json output from device info and device list includes a whep_url field — a standard WHEP playback URL you can embed in your own platform or feed into any WHEP-compatible player.

# Get the raw stream URL for the active session
revyl device info --json | jq -r '.whep_url'

# List all sessions with their stream URLs
revyl device list --json | jq '.[].whep_url'

Record Part of a Session

revyl device record start                          # start recording the active session
revyl device record stop                           # save a new revyl-recording-<timestamp>-<id>.mp4 here
revyl device record stop --output checkout-bug.mp4 --json
revyl device record start --session-id YOUR_SESSION_ID

device record saves a span of a running iOS or Android session as an MP4 without ending the session. stop returns within seconds of finalizing the recording on the device, and you can run as many start/stop cycles as you like, one recording at a time per session. It uses a recorder on the device that is separate from the full-session recording, which stays unchanged.

  • start prints the recording ID; stop uses the one last started from the same directory on that session, or --recording-id names it.
  • A recording stops on its own after 3 minutes or about 160 MiB, whichever comes first. The busiest iOS screens reach the size limit after about a minute; stop then still saves the MP4 and reports limit_reached: true.
  • Stopping the session discards a recording that was not stopped.
  • --output takes a file or an existing directory. If the file can't be written, stop saves the MP4 under .revyl/mcp/recordings and warns.
  • JSON from stop carries path, size_bytes, duration_seconds, recording_id, session_id, limit_reached and any warning.
  • Neither command is retried automatically. Web sessions and physical iPhones are not supported, and a device worker that predates on-demand recording fails with a message that points to revyl session download.

Session Timeline and Action Clips

revyl session download saves what happened in a finished device session or test run: every recorded action placed on the session video, a short clip of each action, and, on request, the full video. It accepts a device session ID or a test execution (task) ID; computer sessions are not supported yet.

revyl session download <session-id>                        # timeline.json and clips/
revyl session download <session-id> --include-full-video   # also video.mp4
revyl session download <task-id> --no-clips --json         # timeline only; no ffmpeg needed
revyl session download <session-id> --output-directory ./evidence

The output directory (default ./revyl-session-<id>) holds:

  • timeline.json: each action, agent steps and manual tap, swipe, navigate and so on, with its type, label, step outcome, and video_timestamp_start and video_timestamp_end in seconds from the first frame of the video. clip_file_path names the action's clip, and video_file_path names the full video when you asked for it.
  • clips/: one MP4 per timed action, such as clips/003-tap.mp4. A clip runs with up to 1.5 seconds before the action starts and after it completes. Nearby actions shrink the padding between them, and the recording boundaries clamp each clip.
  • video.mp4: the full session video, only with --include-full-video.

Clips are cut sequentially on your machine with ffmpeg, which must be on PATH. Clean machines may not have it installed. Install it with brew install ffmpeg on macOS, sudo apt-get install ffmpeg on Debian or Ubuntu, or winget install ffmpeg on Windows. Without it, the command still writes timeline.json, then exits with the install guidance; use --no-clips for a timeline-only download, or --no-clips --include-full-video for the full-video-only fallback. revyl doctor reports whether ffmpeg is available. During a human download, the CLI shows byte progress for the recording when the server provides its size and reports downloaded bytes without a percentage when it does not, followed by the current clip count. JSON output stays limited to its documented result. Actions recorded without timestamps, or timed outside the video, appear in the timeline with no clip. If a clip's window holds no video frames, for example because the recording ends before the action, the command stops with an error instead of writing an empty clip.

Clips and --include-full-video need the session's video, which Revyl publishes after the session ends, usually within a minute. While the session is still running or its video isn't published yet, the command waits up to 30 minutes for it. If the wait runs out, the command writes timeline.json and exits with a non-zero status and the session was still running or publishing its video after 30 minutes. Rerun it after the session finishes.

When the session finished without a video, the command writes timeline.json and exits with a non-zero status and one of these errors, which a rerun doesn't change:

  • this session finished without a video: the session ended without recording one.
  • Revyl could not confirm a video for this session: the session's video was never published, so Revyl can't tell whether it recorded one.

--no-clips without --include-full-video doesn't need the video, so it doesn't wait and downloads the timeline alone, including for a session that is still running.

Push Notifications

revyl device push delivers a notification to the app running in a session's iOS simulator. It has two forms:

  • revyl device push --title "..." --body "..." --badge 1 builds a simple APNs payload from the flags and delivers it. At least one of --title, --body, or --badge is required.
  • revyl device push apns <file-path> delivers a raw APNs payload file, preserving its structure, custom keys, and values, for testing payload shapes the flag form cannot express (custom keys, mutable-content, content-available, etc).

The notification is delivered straight to the simulator running your app. It does not travel through Apple's push service, so there is no push token, no signed build, and no aps-environment entitlement required. It exercises your app's notification-handling code, the same path a real push triggers, rather than push delivery itself. iOS only; there is no Android equivalent.

A payload file must be a JSON object with a top-level aps key, and at most 4096 bytes total (Apple's own limit for a regular notification).

No notification will appear on screen until the app has been granted notification permission. Revyl does not grant it for you, so that your tests can cover the permission prompt and the denied case as a real user would meet them. Launch the app so it asks, accept the prompt, then send the notification.

Delivery and display are separate, which is why a push can report delivered while the screen stays empty: the payload reached the app, and iOS declined to draw anything because permission was missing. The app's own handlers still run, so userNotificationCenter(_:willPresent:) and the rest fire either way. Silent pushes (content-available with no alert) are unaffected, since they display nothing by design.

The target bundle ID is resolved in this order:

  1. A Simulator Target Bundle key inside the payload file, if present.
  2. The --bundle-id flag.
  3. The session's app under test.
cat payload.apns
{
  "aps": {
    "alert": {
      "title": "Order shipped",
      "body": "Your order is on its way"
    },
    "badge": 1,
    "sound": "default"
  },
  "Simulator Target Bundle": "com.example.myapp"
}
revyl device push apns payload.apns

When the payload has no Simulator Target Bundle key, pass --bundle-id to target an app other than the session's app under test:

revyl device push --title "Order shipped" --bundle-id com.example.myapp

App Permissions

revyl device permissions set allows, denies, or resets an app's OS permissions so its permission prompts don't interrupt runs that aren't testing onboarding. Each argument is name=value, where the value is allow, deny, or unset, and --bundle-id names the app. Setting a permission stops the app if it is running.

On iOS, set permissions before the app's first launch. revyl device start --app-id (or --build-version-id) installs the app and launches it as soon as the session is ready, so the app asks for its permissions before permissions set can run. Start the session without either flag instead:

revyl device start --platform ios
revyl device install --app-id <app-id>
revyl device permissions set --bundle-id com.example.app location=allow motion=allow
revyl device launch com.example.app

A permission alert the app has already shown stays on screen even after the app restarts, and answering it replaces the permission you set: a location grant answered with "Allow While Using App" ends up While Using. If the app has already asked, answer its alerts first, then set the permissions.

iOS simulators pre-grant calendar, contacts, location (as Always), medialibrary, microphone, motion, photos, reminders, and siri. They cannot pre-grant notifications or App Tracking Transparency (userTracking), and the command refuses them; let the app show those alerts and answer them on the device. On iOS the command also refuses microphone=deny, microphone=unset, all=deny, and all=unset: Revyl's audio injection grants the microphone on every app launch, so a deny or reset wouldn't hold. Android sessions take bluetooth, calendar, camera, contacts, location, medialibrary, microphone, notifications, phone, sms, storage, or a fully qualified permission such as android.permission.CAMERA, and skip any the app doesn't request. Both platforms take all. The command refuses names the session's platform can't set.

Device Session Flags

-s <index|id>       # Target a session by local index or server-issued session ID
--session-id <uuid> # Target a session by server-issued ID (explicit spelling)
--json              # Output as JSON (useful for scripting)
--timeout <secs>    # Idle timeout for start (default: 300)

Every revyl device command that acts on a session accepts both spellings. -s takes either form: -s 2 is a local index from revyl device list, while -s 9f3c1a2b-... is the server-issued session_id returned by revyl device start --json.

REVYL_SESSION_ID scopes an entire shell to one session, so batch workers do not have to repeat the flag:

export REVYL_SESSION_ID=9f3c1a2b-4d5e-4f60-8a71-b2c3d4e5f607
revyl device screenshot --out screen.png

Precedence is --session-id, then -s, then REVYL_SESSION_ID. Setting --session-id and -s to different sessions is an error rather than a silent pick. A command that names no session uses, in order:

  1. The session last started or selected in this project directory by revyl device start, revyl dev, revyl device use, or revyl device attach, while it is live.
  2. Otherwise the most recently started live session started from this directory.
  3. Otherwise the account's only live session. When several are live and none was started or selected here, the command stops and lists each session with its -s <session-id> command; revyl device use <index> picks one for this directory.

The CLI prints one stderr line when this choice changes from the previous command in the directory, and --json output then adds defaults_applied.

When -s <index> no longer matches a session and exactly one session is live, device commands use that session and print Using session 1, ios 9f3c1a2b (index 0 is stale and this is the only active session). on stderr; --json output adds defaults_applied. The CLI refuses this fallback when it knows the stale index's own session ended while the live one was already running, since that session likely belongs to another caller, and while another session is still starting, since then no session is the only one. revyl device stop never falls back: a stale index is nothing to stop.

When a session has ended, the next "no session" error says which session ended, how long ago, and why when Revyl knows (for example an idle timeout and its length), then names the revyl device start command for the same platform.

REVYL_SESSION_ID applies only to commands that accept -s. The revyl dev commands pick their session from the dev context instead, so exporting it for a batch leaves them alone.

revyl device stop --all ignores REVYL_SESSION_ID, -s, and --session-id and requests a stop for every session revyl device list would show. It returns stopped_all: false with stop_requested: true and exit zero when all requests were accepted but cleanup is pending. A nonzero exit means at least one request failed. The batch session_settled and device_released fields are true only when confirmed for every targeted session. Per-session results preserve each identity, acceptance, settlement, release, and request error for mixed outcomes. Use a per-ID device stop when a batch worker should release only its own device.

revyl device stop is idempotent. With no running session, or with a -s <index> whose session already ended, it exits zero, prints one stderr line such as No active device session to stop; nothing to do., and --json adds already_stopped: true. A session ID your organization can't access still fails. Without -s, --session-id, REVYL_SESSION_ID, or --all, it stops a session only when exactly one is live; with several, it stops nothing and lists each one with its revyl device stop -s <session-id> command, because another agent using the same account may still be using the others. Sessions still starting (no reachable worker yet) are never reported as nothing to stop: a single stop names them with a stop-by-ID command, and --all lists them under unreachable_session_ids with stopped_all: false.

Local indexes live in a per-project file that every CLI process in the directory shares. Writes to it are serialized, so concurrent device start runs no longer drop each other's sessions, but an index still only means anything relative to that file. Session IDs are resolved straight from the backend in a single call and never touch the file, so prefer them for anything running more than one session at a time.

Parallel batches

Start each session, keep its session_id, and drive every later command by ID:

SESSION_A=$(revyl device start --platform ios --json | jq -r '.session_id')
SESSION_B=$(revyl device start --platform ios --json | jq -r '.session_id')

revyl device instruction "Sign in as the test user" -s "$SESSION_A" --json &
revyl device instruction "Open the settings tab" -s "$SESSION_B" --json &
wait

revyl device stop -s "$SESSION_A"
revyl device stop -s "$SESSION_B"

# Or stop every session. --all ignores REVYL_SESSION_ID.
# revyl device stop --all

Computer runs

Revyl computers come with Pro. Add a card to unlock them; your 1,200 free minutes still cover their sessions.

revyl computer and revyl device start --computer run in Revyl computers, macOS workspaces for agents, which come with Pro; revyl billing add-card opens Billing to add a card. On the Free plan, revyl computer create returns computer_not_enabled (HTTP 403) without creating anything until a card is added, and prints the Billing link that adds one (for a member, the link to send an owner or admin); with --json that link is billing_url beside billing_action. Other paid plans that include Revyl computers keep them; if yours doesn't, contact support@revyl.ai.

revyl computer targets an explicit computer ID ($COMPUTER_ID), independently of device sessions. A create whose computer was recorded but could not be started returns start_failed, and that computer reads as failed. Create also needs a free device slot (a computer takes one slot of the budget your iOS sessions use, and the app sessions inside it take none), your organization's compute credits (HTTP 402 when they are exhausted or unpaid), and a role other than Viewer. A computer keeps that slot until its cleanup is confirmed, so a computer that reads failed, owner_lost or stopped with release unknown still holds it. revyl computer stop on that computer frees the slot once its cleanup can be confirmed.

revyl computer create
revyl computer create --os macos --json
revyl computer create --os macos --wait --json
revyl computer create --os macos --display 1440x900 --json
revyl computer create --os macos --timeout 8h --json
revyl computer create --os macos --session-profile signed-in --json
revyl computer create --os macos --inference --json
revyl computer extend "$COMPUTER_ID" --timeout 4h --json
revyl computer
revyl computer list
revyl computer get "$COMPUTER_ID"
revyl computer get "$COMPUTER_ID" --full
revyl computer get "$COMPUTER_ID" --json
revyl computer exec "$COMPUTER_ID" --request-id "$REQUEST_ID" --timeout 30s -- git status
revyl computer exec "$COMPUTER_ID" --timeout 45m --cwd app --env CI=1 --env NPM_TOKEN -- make test
revyl computer exec "$COMPUTER_ID" --stream --json -- make test
revyl computer files write "$COMPUTER_ID" notes.txt --from local.bin --json
revyl computer files read "$COMPUTER_ID" notes.txt > downloaded.bin
revyl computer files stat "$COMPUTER_ID" notes.txt --json
revyl computer upload "$COMPUTER_ID" build.tgz app/build.tgz --json
revyl computer download "$COMPUTER_ID" app/dist.zip dist.zip --json
revyl computer process list "$COMPUTER_ID" --json
revyl computer process inspect "$COMPUTER_ID" "$HANDLE" --json
revyl computer process terminate "$COMPUTER_ID" "$HANDLE" --json
revyl computer operation get "$COMPUTER_ID" "$OPERATION_ID" --json
revyl computer report "$COMPUTER_ID" --format json
revyl computer report "$COMPUTER_ID" --format atif
revyl computer report "$COMPUTER_ID" --format performance
revyl computer report "$COMPUTER_ID" --format performance --json
revyl computer report "$COMPUTER_ID" --format performance --watch --interval 5s --timeout 10m
revyl computer report "$COMPUTER_ID" --format performance --watch --json
revyl computer export "$COMPUTER_ID" --format harbor
revyl computer export "$COMPUTER_ID" --format harbor --out ./computer.zip
revyl computer stop "$COMPUTER_ID" --json

--os defaults to macos, so a bare revyl computer create starts a macOS workspace and prints its ID, state and what to run next. create returns while the computer is usually still starting; --wait returns once it is active, or exits non-zero naming the state it ended in (124 if it is still starting at --wait-timeout, default 2m). --display WIDTHxHEIGHT sets the screen size in pixels for the computer's lifetime (even width 800-1920, even height 600-1080, default 1280x800); a non-default size boots a fresh VM, so it starts slower than the default.

From your app's checkout, --os macos runs the checkout's session.default_profile, and --session-profile NAME runs that session profile instead, on the Mac once the computer is active; create waits until it finishes (--wait-timeout defaults to 10m with a profile). A failed profile stops the computer, and create prints the reason and exits 1. --session-profile none runs no profile. Create sends the profile and its script from the checkout, uncommitted changes included; --from-checkout=false reads them, and the project's default, from Git, and --branch BRANCH picks the Git branch (default: the checkout's).

export saves the computer as a Harbor trial bundle. --format defaults to harbor, the only supported format; --out FILE overrides ./revyl-computer-<COMPUTER_ID>.zip. The destination directory must exist. Downloads can take up to 30 minutes and honor cancellation. The CLI checks the ZIP central directory and the expected revyl-computers/computer-<COMPUTER_ID>/agent/trajectory.json before replacing the file. Failures remove the temporary file and preserve any existing destination; retry if the export was cut off. Success prints the path, size and viewing command to stderr; --json emits computer_session_id, format, path and size_bytes on stdout. The bundle embeds available screenshots and the desktop recording, so treat it as private evidence. With Harbor installed:

revyl computer export "$COMPUTER_ID" --out ./computer.zip
unzip ./computer.zip -d jobs && harbor view jobs

revyl computer with no arguments prints the running computers among the newest 25 and counts by state, or help when you're signed out. list prints the organization's newest computers with their state and counts by state (--limit 1..100, default 25), and get prints a computer's state, a count of its steps by outcome and its last 20 steps as a table, cutting commands at 80 characters; --full prints every step and whole commands. --json prints the full detail. Human output suggests next commands on stderr. With --json, a failure prints error, and error_code when Revyl named one, such as computer_limit. There is no image or lifetime option, and no active-computer setting. exec --cwd DIR sets the working directory (absolute or relative to the workspace) and --env NAME=VALUE sets a variable; --env NAME copies a local variable without printing it. Neither is recorded in steps, reports, logs or analytics. A host that predates these options refuses them, and any exec timeout over 5m, with exec_options_unsupported and runs nothing.

An exec can run for up to 60 minutes. If the CLI is interrupted, the command keeps running: read it with operation get (exit 75 while running), see it in process list, and stop it with process terminate. File reads and stats answer while it runs. Up to 8 execs run at once on one computer; past that, and on a host that predates concurrent execs, further execs and file writes wait. In a terminal, exec streams its output as it runs; --stream streams into a pipe too, --no-stream prints the output once the command ends, and --stream --json prints one JSON event per line (output, heartbeat, then result or error). A streamed exec takes up to 1 MiB of --stdin and streams up to 64 MiB of output, which isn't stored: operation get later returns empty stdout and stderr. Without streaming support on the backend or computer, exec runs buffered. Run long work as one exec rather than relying on & or nohup processes to outlive their exec. create --id supplies a proposed ID; otherwise it is generated once. Use exec --stdin FILE|- or files write --from FILE|- for bounded binary input. Process handles belong to the computer; they are not process IDs.

report --format performance reads whole-computer CPU, memory, disk, network, and desktop-FPS samples. Human output shows the state, source, sample count, duration, and latest/minimum/average/maximum values; — means no samples. --json prints the API report unchanged.

Use --watch to poll new samples with the returned cursor. Human mode prints one line per sample; --json prints one API page per line (JSON Lines), including empty pages. State changes and notices go to stderr. The default interval is 5s (2s..60s); the default timeout is 10m (1s..2h). These flags require --format performance, and interval/timeout require --watch. Watching exits 0 after reading a terminal computer's saved report (stopped, failed or owner_lost), or after a 10s grace when no samples were saved. Timeout exits 124 and Ctrl-C or context cancellation exits 130; neither stops the computer. API and output failures exit 1.

A computer runs for two hours from create, or up to 72 hours with --timeout; revyl computer extend keeps a running one alive longer, never past 72 hours from create. Operation timeouts are 1ms–5m, and 1ms–60m for exec (default 30s). Exec accepts up to 64 arguments, 64 environment variables, and 16,384 combined bytes of argv, stdin, working directory and environment. Exec keeps the first 1,048,576 bytes (1 MiB) of combined stdout/stderr; the command still runs to completion and reports its real exit code, and later output is dropped; the result then carries "output_truncated": true and, when the computer counted it, stdout_byte_count and stderr_byte_count. Reads accept --max-bytes 1..1048576 and return at most that many bytes from the start of the file; a read that fills the limit stats the file and, when it is longer, says so on stderr, or with --json adds "truncated": true and size_bytes. Use download for larger files. Writes accept at most 65,536 bytes, upload (with --append) and download move files of up to 1 GiB through Revyl's storage, and process lists accept --max-items 1..64. Guest paths are relative and cannot contain traversal, empty/dot components, controls, backslashes or colons. Local inputs must be regular files or stdin; symlinks and special files are rejected. Local input acquisition and reads honor --timeout and command cancellation. Oversize input fails without truncation.

JSON preserves typed server results with padded URL-safe base64 binary fields. Without JSON, exec and file read emit exact bytes; metadata goes to stderr, including a note when exec output reached the 1 MiB limit or a file read stopped short of the file's end. Reports and ATIF are summary-only server projections. get additionally shows each recorded exec step's command_display: the shell-quoted argv with the credential forms the backend recognizes replaced by <redacted> (anything else is shown as typed), at most 200 characters, never output or stdin. If the display cannot be read, get still succeeds without it. A timed-out or disconnected mutation is never automatically retried or redirected: use the printed operation ID with operation get, or inspect the computer with get/report. Reusing a request UUID with changed input conflicts. There is no cross-restart raw-result recovery.

revyl device start --platform ios --app "$APP" --computer "$COMPUTER_ID" requires computers to be enabled for your organization. It starts a Web app or iOS simulator session inside a macOS computer when its hosting capability lists that platform. The capability also caps each platform (max_children_by_platform); a start past that cap is refused with 409 computer_platform_at_capacity before anything runs. Hosted Web needs no separate Web enablement and uses a registered deployment URL build, not a managed Web bundle. Hosted Web runs in Chrome by default; --browser safari runs it in Safari when the computer is a Mac whose hosting capability lists safari in browsers (omitted browsers means Chrome only). Otherwise the start is refused with 409 computer_cannot_host_browser, and Safari outside a computer is refused with 422 web_browser_unsupported. When only REVYL_COMPUTER_ID supplies the target, managed Web bundles instead keep running as standalone Web sessions. Implicit mobile starts skip session profiles, session.before_script, and session.auth_bypass and use the app's defaults. An iOS start with an explicit --computer keeps session.before_script and session.auth_bypass when the computer's host can deliver launch values, and skips them with a warning otherwise. No app session started inside a computer runs a session profile (run one on the computer itself with revyl computer create --session-profile); --computer=none keeps those standalone settings. On an agent outpost's computer, use --computer=none only for a model the computer can't run; the outpost stops every session it started outside its computer when it ends. Select an app and one of its builds; the computer chooses the device, so --app-url, run options and test-backed starts are refused. An iOS app accepts non-secret launch variables, arguments and environment when the computer's host can deliver them, else the start is refused with 409 computer_launch_values_unsupported before anything runs; secret launch variables are refused with 422 secret_launch_variable_refused, and Android apps accept no launch values. For hosted iOS starts, --device-model "iPhone Air" runs an iPhone Air when the computer's image supports it; otherwise the backend refuses the start. An iOS or Android start with no app selected or configured runs the device with no app. The app session has its own session ID, stream, report and revyl device stop. Stopping it leaves the computer running; stopping the computer ends it. Its report attributes only the actions Revyl's driver took, and commands run on the computer can also change the app.

Screen commands

revyl computer screenshot "$COMPUTER_ID" --out shot.png
revyl computer screenshot "$COMPUTER_ID" --zoom 100,100,900,600 --out detail.png
revyl computer click "$COMPUTER_ID" --x 640 --y 360
revyl computer click "$COMPUTER_ID" --target "the Save button"
revyl computer move "$COMPUTER_ID" --x 640 --y 360
revyl computer drag "$COMPUTER_ID" --start-x 100 --start-y 100 --end-x 600 --end-y 400
revyl computer scroll "$COMPUTER_ID" --x 640 --y 360 --direction down --amount 5
revyl computer type "$COMPUTER_ID" --text-env TEXT_TO_TYPE
revyl computer key "$COMPUTER_ID" --key cmd+space

Coordinates are pixels in the returned screenshot, not framebuffer pixels: a 1920×1080 desktop is returned as 1280×720.

click takes either --x and --y or --target "the Save button", never both. With --target, Revyl takes a screenshot, finds the described element on it and clicks there through the same click; the result's point is where it clicked, in screenshot pixels. When the lookup reports no match, the click fails with screen_target_not_found and nothing is clicked; screen_target_unavailable means the lookup itself failed, and nothing is clicked either. The lookup can still return a point for a look-alike, or for a target that isn't on the screen at all, and then that point is clicked, so check point or the screenshot when it matters.

click accepts --button left|right|middle (default left), --count 1..3 (default 1), and comma-separated --mods shift,ctrl,alt,cmd. scroll accepts --direction up|down|left|right, --amount 1..20 (default 3), and --mods. key --hold 0..5 holds a single chord for that many seconds.

type requires exactly one of --text or --text-env; the latter reads a local environment variable without printing its value. Text may be any Unicode, including accented letters, CJK and emoji, up to 500 characters (code points) and 1,500 UTF-8 bytes. Newline types Return and tab types Tab; other control characters are refused. A refused text, or one the computer cannot type, fails with screen_text_unsupported and types nothing.

type is not idempotent: sending the same text twice types it twice. Never retry a failed type blindly; take a screenshot first to see what was typed. screen_input_uncertain means Revyl sent the action but its answer was lost, for example to a timeout or a dropped connection, so it may still be applied. Text with characters outside printable ASCII types more slowly, up to about 28 seconds for long text.

Every screen command accepts --out FILE and --json. Actions return a fresh screenshot only when --out is set. Screenshot JSON contains width, height, observed_at, png and cursor; action JSON contains screenshot (null unless --out is set), cursor, and point and engine after a click with --target. The cursor is an { "x": ..., "y": ... } point or null, and png uses padded URL-safe base64. Without --json, screen commands print their notices to stderr.

Plain-language steps

revyl computer instruction "$COMPUTER_ID" "Open the File menu"
revyl computer validation "$COMPUTER_ID" "The cart shows 2 items" --json
revyl computer extract "$COMPUTER_ID" "the order number"
revyl computer instruction "$COMPUTER_ID" "Click Save" --engine local

An instruction clicks the one thing it names, a validation checks a statement against the screen, and an extract reads a value off it. --engine auto (the default) tries a vision model on the computer's own host first and falls back to hosted grounding where one exists; local and hosted pick one. Only instructions have a hosted path, so on a computer without a local model validation and extract fail with step_engine_unavailable. A computer's model answers one step at a time, so a step that can't get its turn fails with step_engine_busy; send one computer's steps one at a time. A point, statement or value the local model cannot confirm is uncertain, never a pass, and an uncertain instruction clicks nothing. The result has the device verbs' fields plus point, engine, local_engine (the host's model server when it answered), attempts, seconds and, when the host's model answered, timing (the step's seconds by phase: capture, host round trip, queue, image, first token, decode and act), and the command exits 1 unless the status is passed.

revyl computer create --os macos --inference places the computer on a host with its own vision model loaded. Local inference is included in paid plans; on the Free plan, create is refused with inference_not_enabled (HTTP 403) and nothing is created, so upgrade your plan to use it. When no such host is up, create fails with inference_unavailable (HTTP 409) and creates nothing; when they are all busy, the computer waits for one. revyl computer get shows whether the computer's inference endpoint would serve it now: inference is ready, unavailable (the model doesn't answer or the host serves the computer no endpoint), or unknown until the computer is active. validation and extract run only on that model, so they fail with step_engine_unavailable on a computer without one, and with --engine hosted on any computer. click --target always tries the model first and then hosted grounding. A persistent computer created with --inference is placed on a host with a model on every later start, and start answers inference_unavailable (HTTP 409) when none is up; start --no-inference starts that one run without a model, and later starts ask for it again. A computer created with --from-snapshot doesn't take the source's flag; pass --inference with it. See Local inference for what uses the model.

Persistent computers

Persistent computers are included in paid plans. On the Free plan, create, start and snapshot save are refused with persistent_computers_not_enabled (HTTP 403); upgrade your plan to use them.

A persistent computer keeps its whole disk when it stops, so it starts again later under the same ID. An organization keeps at most 100 snapshots unless Revyl raised its limit. See Persistent computers for how it works.

revyl computer create --persistent --os macos --wait --json
revyl computer stop "$COMPUTER_ID" --wait           # returns once the disk is saved
revyl computer list --persistent                    # stopped (saved on host) / (saved off host)
revyl computer start "$COMPUTER_ID" --wait          # same ID, new run, cold boot from the disk
revyl computer delete "$COMPUTER_ID" --yes          # removes the computer and its saved disk
revyl computer create --persistent --name build-mac --label owner=e2e --wait   # a name works where the ID does
revyl computer start build-mac --wait               # every command that takes the ID takes the name
revyl computer exec build-mac -- xcodebuild -version
revyl computer rename build-mac ci-mac              # --clear removes the name
revyl computer list --persistent --label owner=e2e  # --name and --label filter the list
revyl computer snapshot save "$COMPUTER_ID" --name xcode-ready --description "Xcode 26 and iOS 26 simulators"
revyl computer snapshot list
revyl computer snapshot get xcode-ready --json
revyl computer create --from-snapshot xcode-ready --wait --wait-timeout 10m --json
revyl computer snapshot delete xcode-ready --yes

stop --wait and start --wait wait up to --wait-timeout (default 10m, 1s to 30m) and exit 124 if the computer is still stopping or starting then. start takes --timeout and --display for the new run, as create does. A persistent run starts saving 3 minutes before its expires_at, so with a start that can take 6m a persistent --timeout must be at least 9m; a shorter one is refused with invalid_request. list --persistent shows when a save stops being startable under SAVE EXPIRES, and snapshot list when a snapshot stops being usable under EXPIRES; most saves have no end. delete stops a running computer first, which saves its disk as any stop does, deletes that save too, and leaves its snapshots.

A computer's name is unique among your organization's live computers, follows the same rule as a snapshot name and also isn't persistent or snapshots; a name another live computer has is refused with computer_name_taken, and deleting a computer frees its name. Labels are up to 16 KEY=VALUE pairs set at create.

snapshot save needs a computer that is stopped and whose save is saved off host (durable: true in JSON); otherwise it answers computer_not_stopped or saved_disk_not_durable. A name is 1 to 64 letters, digits, ., _ or -, starts with a letter or digit, isn't a UUID, and is unique among your organization's snapshots. An optional --description (-d) of up to 500 characters, trimmed, says what the snapshot holds; snapshot list shows it under DESCRIPTION, and snapshot get and --json show it whole. snapshot get, snapshot delete and create --from-snapshot take an ID or a name. --from-snapshot implies --persistent; a computer created from a snapshot on another Mac than the one that saved it can take several minutes to become active, so give --wait a longer --wait-timeout than the 2m default.

Exit codes

Execution, evidence-write health and release certainty are separate. Exit 0 means a successful recorded operation/read or confirmed recorded stop. A command that exits non-zero prints Command exited with code N and exits with the guest's code (1 when that code is outside 1–255); 1 also means another failed operation or an input/API/transport error; 74 means successful execution with unrecorded evidence; 75 means pending; 124 means timed out; 125 means the outcome or cleanup is unknown, or create returned a failed computer. Reading a report can succeed even when historical execution failed. Stop retains evidence and never reports cleanup as confirmed when it isn't.

Shell Completion

# Bash (add to ~/.bashrc)
source <(revyl completion bash)

# Zsh (add to ~/.zshrc)
source <(revyl completion zsh)

# Fish
revyl completion fish | source

# PowerShell
revyl completion powershell | Out-String | Invoke-Expression

Diagnostics & Utilities

revyl doctor     # Check CLI health, connectivity, auth, sync status
revyl ping       # Test API connectivity and latency
revyl upgrade    # Check for and install CLI updates; leave agent skills unchanged
revyl --version  # Show CLI version (short format)
revyl version    # Show version, commit, and build date (--json for CI)
revyl docs       # Open Revyl documentation in browser
revyl schema     # Display CLI command schema (for integrations)
revyl mcp serve                         # Start MCP server for AI agent integration (legacy flat mode)
revyl mcp serve --tool-profile dev      # 11 focused setup, dev-loop, and device tools
revyl mcp serve --tool-profile core     # Broad device + test/build compatibility surface
revyl mcp serve --tool-profile full     # Core plus workflow/module/script/tag/file/variable management
revyl mcp serve --tool-profile core --experimental-workspace # Opt into the embedded Atlas and device workspace
revyl skill list                                      # List first-class skills
revyl skill list --all                                # Include separate guide skills and MCP skills
revyl skill list --installed --json                   # Inspect project and global installations
revyl skill install                                  # Recommended skills; a terminal picker preselects them
revyl skill install --name revyl-cli-dev-loop --name revyl-cli-create --agent codex --yes
revyl skill install --name revyl-cli-atlas --cursor
revyl skill install --name revyl-cli-atlas-review --claude
revyl skill install --name revyl-cli-figma-review --agent claude-code --global --yes
revyl skill install --name revyl-cli-cross-platform-review --agent claude-code --global --yes
revyl skill install --name revyl-cli-auth-bypass --codex --global
revyl skill install --name revyl-cli-create --claude --copy
revyl skill install --opencode --yes                  # Recommended skills where OpenCode reads them
revyl skill update                                   # Update installed, unmodified project packages
revyl skill update revyl-cli-atlas                    # Update one installed package
revyl skill update --global --json                    # Update global packages; return JSON
revyl skill update --consolidate                      # Replace separate revyl-cli-* guides with the revyl-cli router
revyl skill show dev-loop                             # Print one guide from this CLI version
revyl skill show auth-bypass --reference web          # Print one of a guide's reference files
revyl skill show --name revyl-cli-dev-loop             # Print only the root SKILL.md
revyl skill export --name revyl-cli-create -o FILE     # Export only the root SKILL.md
make device-prod-smoke-ios    # Local iOS branch smoke against production device relay
make device-prod-smoke-android # Local Android branch smoke against production device relay
make device-prod-sdk-smoke-ios # Local iOS SDK smoke against production
make device-prod-sdk-smoke-android # Local Android SDK smoke against production

mcp serve --experimental-workspace enables the experimental embedded Atlas and device workspace in compatible MCP Apps hosts. It is opt-in; omitting the flag preserves the existing profile behavior. Browser authentication remains separate from CLI authentication, and opening the workspace does not provision a device.

Without selectors, skill install uses the recommended skills that skill list shows. An interactive picker preselects them; an empty selection changes nothing. Noninteractive runs, --yes, and --json install them directly and name them on stderr; --json output adds "selection": "default". Repeated --name flags choose specific skills. --skill aliases --name; --all selects the full catalog and --mcp the MCP family. --cli selects the recommended CLI skills: the revyl-cli router, which carries every model-invocable CLI guide in references/, plus the explicit-only revyl-cli-auth-bypass and revyl-cli-atlas-review. skill update --consolidate installs the router beside separately installed guides and removes their unmodified Revyl-managed copies, preserving edited ones, then refreshes the other installed packages as plain skill update does.

Shared packages live in .agents/skills/ for direct Cursor, Codex, and OpenCode discovery, with per-skill relative links in .claude/skills/. --global selects home directory scope; --copy uses independent legacy agent directories instead. Other agents reading the shared directory can discover the same skills. Conflicting legacy packages in any agent directory in the selected scope block shared storage, including retired auth-bypass platform aliases, even if that agent was not selected. These packages are preserved, not pruned. Symlinked shared directories must resolve inside the selected project or home directory. The installer copies complete packages. A project install inside a Git repository also writes a short Revyl skill index between Revyl markers in the repository root's AGENTS.md, or CLAUDE.md when that is its only instruction file; --no-agents-md skips it, and --global installs never write into a repository. It does not inject Cursor rules. See MCP Setup for client setup and package details.

skill update refreshes only already-installed, unmodified Revyl-managed packages from this CLI version. Local edits and unmanaged packages are preserved and reported; no new skills are installed. Normal installation also leaves existing packages unchanged. skill install --force is an explicit destructive override that replaces the selected packages, including local edits. Binary upgrades leave skill packages unchanged.

skill list --installed scans both project and global locations; only skill update --global restricts an update to global scope. With --json, installation, installed listing, and updates return a skills array. Each entry includes name, the package directory as path, and status; failed or preserved entries can also include a reason.

Global Flags

These flags are available on all commands:

-C, --chdir <dir>  # Run as if started in this directory (the project dir containing .revyl/)
--debug            # Enable debug logging
--intent <text>    # State what this command is for; recommended for agents
--json             # Output as JSON (where supported)
--version          # Show CLI version and exit
--quiet / -q       # Suppress non-essential output

On this page