|
1 | 1 | device run |
2 | 2 | ========== |
3 | 3 |
|
4 | | -Usage: |
5 | | - `$ tns device run <ApplicationId> [--print-app-output] [--device <Device ID>]` |
6 | | -Runs the selected application on a connected Android or iOS device. |
7 | | -You can run this command on one connected device at a time. |
| 4 | +Usage | Synopsis |
| 5 | +------|------- |
| 6 | +General | `$ tns device run <Application ID> [--device <Device ID>]` |
8 | 7 |
|
9 | | -`<Application ID> is the application identifier as listed by `$ tns device list-applications`<Device ID>` is the device index or identifier as listed by run `$ tns device` |
10 | | -Prerequisites: |
| 8 | +Runs the selected application on a connected Android <% if(isMacOS) { %>or iOS <% } %>device. |
| 9 | + |
| 10 | +<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can work only with connected Android devices.<% } %> |
| 11 | + |
| 12 | +### Options |
| 13 | +* `--device` - If multiple devices are connected, sets the device on which you want to run the app. |
| 14 | + |
| 15 | +### Attributes |
| 16 | +* `<Application ID>` is the application identifier as listed by `$ tns device list-applications` |
| 17 | +* `<Device ID>` is the device index or identifier as listed by run `$ tns device` |
| 18 | + |
| 19 | +<% if(isHtml) { %> |
| 20 | +### Prerequisites |
11 | 21 | Before running your app on an iOS device, verify that your system and app meet the following requirements. |
| 22 | + |
12 | 23 | * You are running the NativeScript CLI on an OS X system. |
13 | 24 | * You have installed Xcode 5 or later. |
14 | | -* You have built your app with the debug build configuration. Before running your app on an Android device, verify that your app meets the following requirement. |
15 | 25 | * You have built your app with the debug build configuration. |
16 | 26 |
|
17 | | -Options: |
18 | | -* `--print-app-output` - If set, prints the output of the running application. |
19 | | -* `--device` - If multiple devices are connected, sets the device on which you want to run the app. You can run this command on one connected device at a time. |
20 | | -<% if(isHtml) { %> |
| 27 | +Before running your app on an Android device, verify that your app meets the following requirement. |
21 | 28 |
|
22 | | -#### Related Commands |
| 29 | +* You have built your app with the debug build configuration. |
| 30 | + |
| 31 | +### Command Limitations |
| 32 | + |
| 33 | +* You can run this command on one connected device at a time. |
| 34 | +* You can run this command for iOS devices only on OS X systems. |
| 35 | + |
| 36 | +### Related Commands |
23 | 37 |
|
24 | 38 | Command | Description |
25 | 39 | ----------|---------- |
| 40 | +[device](device.html) | Lists all recognized connected devices with serial number and index, grouped by platform. |
26 | 41 | [device android](device-android.html) | Lists all recognized connected physical and running virtual devices with serial number and index. |
27 | 42 | [device ios](device-ios.html) | Lists all recognized connected iOS devices with serial number and index. |
28 | 43 | [device list-applications](device-list-applications.html) | Lists the installed applications on all connected Android and iOS devices. |
29 | 44 | [device log](device-log.html) | Opens the device log stream for a selected connected device. |
30 | | -[device](device.html) | Lists all recognized connected devices with serial number and index, grouped by platform. |
31 | 45 | <% } %> |
0 commit comments