Docs/Mobile CLI

Setup

The mobile CLI drives iOS simulators and Android emulators with the same YAML test format used for the web. This page covers the one-time machine setup before you run your first mobile test.

Install the CLI

bash
npm install -g @assrt/mobile-cli

iOS prerequisites (macOS only)

  • Xcode 15 or later, installed from the Mac App Store.
  • Accept the Xcode license: sudo xcodebuild -license accept.
  • Install command line tools: xcode-select --install.

Android prerequisites

  • Android Studio or the standalone command-line tools.
  • ANDROID_HOME set and $ANDROID_HOME/platform-tools on your PATH.
  • At least one Android SDK platform and system image installed.

Verify

bash
assrt-mobile doctor

Doctor checks your toolchain, lists available devices, and prints any setup steps still pending.