NOTE! You are browsing legacy documentation. For latest visit docs.nativescript.org.

NativeScript Core

tns device android

Description

Lists all recognized connected Android physical and running virtual devices with serial number and index. If a connected Android device is not shown in the list, make sure that you have installed the required Android USB drivers on your system and that USB debugging is enabled on the device.

Commands

Usage Synopsis
General $ tns device android [--timeout <Milliseconds>]

Options

  • --available-devices - Lists all available emulators for Android.
  • --timeout - Sets the time in milliseconds for the operation to search for connected devices before completing. If not set, the default value is 4000. The operation will continue to wait and listen for newly connected devices and will list them after the specified time expires.
Command Description
device Lists all recognized connected devices with serial number and index, grouped by platform.
device ios Lists all recognized connected iOS devices with serial number and index.
device list-applications Lists the installed applications on all connected Android and iOS devices.
device log Opens the device log stream for a selected connected device.
device run Runs the selected application on a connected Android or iOS device.