📺 "One project. One language. Three apps." Learn more in our upcoming code sharing webinar!

NativeScript Core

tns device

Description

Lists all recognized connected Android or iOS devices with serial number and index, grouped by platform.

Commands

Usage Synopsis
General $ tns device [<Command>]

Arguments

<Command> extends the device command. You can set the following values for this argument:

  • android - Lists all recognized connected Android physical and running Android virtual devices.
  • ios - Lists all recognized connected iOS devices.
  • log - Opens the device log stream for a selected connected device.
  • list-applications - Lists the installed applications on all connected Android or iOS devices.
  • run - Runs the selected application on a connected Android or iOS device.

Command Limitations

  • You can run $ tns device ios on Windows and macOS systems.

Aliases

  • You can use $ tns devices as an alias for $ tns device.
Command Description
device android Lists all recognized connected physical and running virtual devices with serial number and index.
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.