The tns device command

If you specifically need to target a device, using the tns device command will give you a list of the devices that are installed and connected to your computer. This will allow you to use the --device <deviceid> parameter on the tns run/debug commands:

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.