Skip to main content
🚀 See how 20+ AI Agents can make your QA faster and smarter. Join 10k+ QAs at global leadership summit! Register Now
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

CLI reference & management for device tunneling

A reference for managing the device tunnel orchestrator and for understanding which native commands are supported.

Once your device tunnel is active, use this guide as a quick reference for managing your connections and running native tool commands. It details the primary commands for controlling the tunnel orchestrator and provides a complete list of the supported commands for both Android (ADB) and iOS.

Managing tunnels & sessions

You can manage the orchestrator and active tunnels using the following commands:

Action Command
Check orchestrator status browserstack-sdk device-tunnel status
List active Appium sessions browserstack-sdk device-tunnel sessions
List active tunnels browserstack-sdk device-tunnel list-tunnels
Disconnect a specific tunnel browserstack-sdk device-tunnel disconnect --session-id "YOUR_SESSION_ID"
Stop the orchestrator and all tunnels browserstack-sdk device-tunnel stop

Supported Android (adb) commands

The following adb commands are permitted. Using an unsupported command will result in an error: closed message.

Only a specific set of native commands are supported through the tunnel for security and stability.

Category Command Description
Connection & Porting devices, connect, disconnect Manages the list of connected devices.
  forward Forwards socket connections from the host to the device.
Application Management install, uninstall Installs or uninstalls an application package (.apk).
  shell am start -n <bundle_id> Starts a specific application activity.
  shell am force-stop <bundle_id> Forces an application to stop running.
  shell pm clear <bundle_id> Deletes all data associated with an application.
  shell pm list packages Lists all installed application packages.
Device Info & Logging shell ps Displays a list of current running processes.
  shell getprop Retrieves device properties and configuration.
  logcat Views the device’s system and application logs in real-time.

Supported iOS (libimobiledevice) commands

The following libimobiledevice commands are permitted for interacting with iOS devices.

Category Command Description
Device Identification & Info idevice_id Lists the UDIDs of attached devices.
  ideviceinfo Displays detailed information about the connected device.
Application Management ideviceinstaller Manages applications (install, uninstall, list, etc.).
Logging & Proxying idevicesyslog Relays the device’s system logs.
  iproxy Forwards ports from the local machine to the device.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle