CLI / oroc list-devices

oroc list-devices

Get the list of connected devices.

Usage#

oroc list-devices [options] --platform=<platform>
oroc devices [options] --platform=<platform>

Options#

Option Description
--platform=<platform> platform target to list devices for:<br>- android<br>- ios
-f, --format=<format> print as 'text' or 'json'
--json shorthand for '--format=json'
--ecid show device ECID (ios only)
--udid show device UDID (ios only)
--only only show ECID or UDID of the first device (ios only)
-V, --verbose enable verbose output
--log-file=<path> mirror logs to a JSON file
-h, --help show help

Notes#

Android output mirrors the device identifiers returned by adb devices. iOS output can include the human-readable simulator/device name plus ECID or UDID for scripting.

JSON output emits an array of device objects with stable id fields for automation.

Examples#

oroc list-devices --platform=android

list attached Android devices visible to adb

oroc list-devices --platform=ios --udid

print iOS devices with UDID values you can pass to --device

oroc list-devices --platform=ios --json

print connected iOS devices as JSON for scripts or agents

Source repository · Edit this page · View Markdown

Quick links

Type to search across the site. Use the up and down arrow keys to choose a result, Enter to open it, and Escape to close.