mobile-next/mobilecli

Universal command-line tool for managing iOS and Android devices, simulators, emulators and apps

What it solves

Mobile development and testing often require interacting with multiple platforms — iOS real devices, iOS simulators, Android devices, and Android emulators — each with its own set of tools and commands. mobilecli provides a single, unified command-line interface to control all of them. Instead of switching between adb, Xcode, and platform-specific utilities, you use one set of consistent commands for device discovery, screenshots, UI interaction, app management, file access, and more.

How it works

mobilecli is installed via npm and run as a global command. It talks to devices through platform-specific mechanisms: on Android it uses adb (and an on-device agent for some features), on iOS it uses Xcode tooling and its own agent. The CLI offers commands like mobilecli devices to list connected devices, mobilecli screenshot to capture a screen, mobilecli io tap to simulate touches, mobilecli apps install to install apps, and mobilecli webview eval to run JavaScript inside embedded webviews. It also runs a background daemon that keeps device connections alive between invocations, and provides an optional HTTP JSON-RPC API for programmatic access. A skill is included for AI coding agents so they can call these commands naturally.

Who it’s for

Mobile app developers, testers, and QA engineers who need to automate device interactions, collect screenshots or logs, install and manage apps, or inspect the state of embedded webviews across iOS and Android. It's especially useful for anyone building automated test suites, integrating mobile tests into CI/CD pipelines, or using AI coding agents that need to control mobile devices.

Highlights

  • Cross-platform: supports iOS real devices, iOS simulators, Android devices, and Android emulators.
  • Device management: list, boot, shutdown, reboot, and control devices.
  • UI automation: tap, double-tap, drag, long press, type text, press hardware buttons.
  • Screenshots and video streaming: capture PNG/JPEG screenshots and stream MJPEG or H.264 video.
  • App management: install, uninstall, launch, terminate, clear data, and list apps.
  • Filesystem operations on devices or inside app containers (Android and iOS Simulator).
  • Location override: fake GPS coordinates (with platform-specific caveats).
  • Webview inspection: list, navigate, query DOM, evaluate JavaScript in embedded webviews.
  • Crash reports and live device logs with field-based filters.
  • VoiceOver control on iOS 27+ for accessibility testing.
  • Agent support: installable skill for coding agents and a JSON-RPC HTTP API for automation.

Related

  • Project
  • Project
  • Project
  • Project