Skip to content

Commit c220cc0

Browse files
tzraikovrosen-vladimirov
authored andcommitted
Updated CLI documentation after behavior changes in run command (#2435)
* Updated CLI documentation after behavior changes in run command * Remove usages of in help content. * Update message for livesync deprecation as it should not contain concrete release version
1 parent 7410ee9 commit c220cc0

17 files changed

+46
-102
lines changed

docs/man_pages/project/testing/build-android.md

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Command | Description
3737
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
3838
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
3939
[emulate](emulate.html) | You must run the emulate command with a related command.
40-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
41-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
42-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
4340
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
4441
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
4542
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/build-ios.md

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ Command | Description
3636
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
3737
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
3838
[emulate](emulate.html) | You must run the emulate command with a related command.
39-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
40-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
41-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
4239
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
4340
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
4441
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/build.md

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ Command | Description
3232
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
3333
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
3434
[emulate](emulate.html) | You must run the emulate command with a related command.
35-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
36-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
37-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
3835
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
3936
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
4037
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/debug-android.md

+5-16
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,31 @@ Usage | Synopsis
66
Deploy on device, run the app start Chrome DevTools, and attach the debugger | `$ tns debug android`
77
Deploy on device, run the app and stop at the first code statement | `$ tns debug android --debug-brk [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
88
Deploy in the native emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
9-
Deploy in Genymotion, run the app and stop at the first code statement | `$ tns debug android --debug-brk --geny <Geny Name> [--timeout <timeout>]`
109
Attach the debug tools to a running app on device | `$ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
1110
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]`
12-
Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny <Geny Name> [--print-app-output] [--timeout <timeout>]`
13-
Livesync on device, run the app start Chrome DevTools, and attach the debugger | `$ tns debug android --no-rebuild`
14-
Livesync on device, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
15-
Livesync in the native emulator, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
16-
Livesync in Genymotion, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --geny <Geny Name> [--timeout <timeout>]`
17-
Livesync on device/emulator, run the app, start and attach the debugger. Refresh everything automatically upon changes | `$ tns debug android --watch [--debug-brk]`
1811
Detach the debug tools | `$ tns debug android --stop`
1912

20-
Debugs your project on a connected device, in a native emulator or in Genymotion.
13+
Prepares, builds and deploys the project when necessary. Debugs your project on a connected device or emulator.
14+
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
2115

2216
### Options
2317
* `--device` - Specifies a connected device on which to debug the app.
2418
* `--emulator` - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
25-
* `--geny` - Specifies a Genymotion emulator on which you want to debug your app.
2619
* `--debug-brk` - Prepares, builds and deploys the application package on a device or in an emulator, launches the Chrome DevTools of your Chrome browser and stops at the first code statement.
2720
* `--start` - Attaches the debug tools to a deployed and running app.
2821
* `--stop` - Detaches the debug tools.
2922
* `--debug-port` - Sets a new port on which to attach the debug tools.
3023
* `--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds.
31-
* `--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application.
32-
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and the debugger is restarted. This option is available only when using `--no-rebuild`.
24+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
25+
* `--clean` - If set, forces rebuilding the native application.
3326

3427
### Attributes
3528
* `<Device ID>` is the index or name of the target device as listed by `$ tns device`
3629
* `<Port>` is an accessible port on the device to which you want to attach the debugging tools.
3730
* `<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate android`
38-
* `<GenyName>` is the name of the Genymotion virtual device that you want to use as listed by `$ genyshell -c "devices list"`
3931

4032
<% if(isHtml) { %>
41-
###Prerequisites
33+
### Prerequisites
4234

4335
* You must have Chrome installed on your system.<br/>If you are using a non-standard named Chrome app on an OS X system (for example, a nightly Canary update), you need to set this name in the `ANDROID_DEBUG_UI_MAC` setting in the NativeScript [config.json](file:///<%= #{config.getConfigPath(config)} %>).
4436

@@ -55,9 +47,6 @@ Command | Description
5547
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
5648
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
5749
[emulate](emulate.html) | You must run the emulate command with a related command.
58-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
59-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
60-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
6150
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
6251
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
6352
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/debug-ios.md

+6-11
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,24 @@ Deploy on device, run the app and stop at the first code statement | `$ tns debu
88
Deploy in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --debug-brk --emulator [<Emulator Options>] [--no-client]`
99
Attach the debug tools to a running app on device | `$ tns debug ios --start [--device <Device ID>] [--no-client]`
1010
Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [<Emulator Options>] [--no-client]`
11-
Livesync on device, run the app, start Safari Web Inspector and attach the debugger | `$ tns debug ios --no-rebuild`
12-
Livesync on device, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk [--device <Device ID>] [--no-client]`
13-
Livesync in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk --emulator [<Emulator Options>] [--no-client]`
14-
Livesync on device/simulator, run the app, start and attach the debugger. Refresh everything automatically upon changes | `$ tns debug ios --watch [--debug-brk]`
1511

16-
Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml) { %>Any debugging traffic is forwarded on port 8080 from the device to the local machine.<% } %>
12+
Prepares, builds and deploys the project when necessary. Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml) { %>Any debugging traffic is forwarded on port 8080 from the device to the local machine.<% } %>
13+
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
1714

1815
<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ tns help debug ios`<% } %>
1916

2017
<% if((isConsole && isMacOS) || isHtml) { %>
2118
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system. <% if(isHtml) { %>For more information, see [Obtaining Signing Identities and Downloading Provisioning Profiles](https://developer.apple.com/library/mac/recipes/xcode_help-accounts_preferences/articles/obtain_certificates_and_provisioning_profiles.html).<% } %>
2219

2320
### Options
21+
* `--device` - Specifies a connected device on which to run the app.
22+
* `--emulator` - Indicates that you want to debug your app in the iOS simulator.
2423
* `--debug-brk` - Prepares, builds and deploys the application package on a device or in an emulator, runs the app, launches the developer tools of your Safari browser and stops at the first code statement.
2524
* `--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
26-
* `--emulator` - Indicates that you want to debug your app in the iOS simulator.
2725
* `--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
2826
* `--timeout` - Sets the number of seconds that NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds.
29-
* `--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application.
30-
* `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and the debugger is restarted. This option is available only when using `--no-rebuild`.
27+
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
28+
* `--clean` - If set, forces rebuilding the native application.
3129

3230
### Attributes
3331
* `<Device ID>` is the index or name of the target device as listed by `$ tns device`
@@ -55,9 +53,6 @@ Command | Description
5553
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
5654
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
5755
[emulate](emulate.html) | You must run the emulate command with a related command.
58-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
59-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
60-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
6156
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
6257
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
6358
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/debug.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Usage | Synopsis
55
---|---
66
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ tns debug <Platform>`<% } %><% if(isConsole && (isLinux || isWindows)) { %>General | `$ tns debug android`<% } %>
77

8-
Debugs your project on a connected device or in a native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to debug.<% } %>
8+
Debugs your project on a connected device or in a native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to debug.<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes the selected device.
99

1010
<% if((isConsole && isMacOS) || isHtml) { %>### Attributes
1111
`<Platform>` is the target mobile platform for which you want to debug your project. You can set the following target platforms.
12-
* `android` - Debugs your project on a connected Android device, native Android emulator or Genymotion emulator.
12+
* `android` - Debugs your project on a connected Android device or Android emulator.
1313
* `ios` - Debugs your project on a connected iOS device or in a native iOS emulator.<% } %>
1414

1515
<% if(isHtml) { %>
@@ -30,9 +30,6 @@ Command | Description
3030
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
3131
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
3232
[emulate](emulate.html) | You must run the emulate command with a related command.
33-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
34-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
35-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
3633
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
3734
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
3835
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

docs/man_pages/project/testing/deploy.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Usage | Synopsis
66
Deploy on Android | `$ tns deploy android [--device <Device ID>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release]`
77
<% if(isMacOS) { %>Deploy on iOS | `$ tns deploy ios [--device <Device ID>] [--release]`<% } %>
88

9-
Builds and deploys the project to a connected physical or virtual device. <% if(isMacOS) { %>You must specify the target platform on which you want to deploy.<% } %>
9+
Prepares, builds and deploys the project to a connected physical or virtual device. <% if(isMacOS) { %>You must specify the target platform on which you want to deploy.<% } %> It will deploy the app on all connected devices targeting the selected platform.
1010

1111
<% if(isMacOS) { %>
1212
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system. <% if(isHtml) { %>For more information, see [Obtaining Signing Identities and Downloading Provisioning Profiles](https://developer.apple.com/library/mac/recipes/xcode_help-accounts_preferences/articles/obtain_certificates_and_provisioning_profiles.html).<% } %>
@@ -24,7 +24,7 @@ Builds and deploys the project to a connected physical or virtual device. <% if(
2424
* `--key-store-alias-password` - Provides the password for the alias specified with `--key-store-alias-password`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
2525

2626
### Attributes
27-
* `<Device ID>` is the index or name of the target device as listed by `$ tns device`
27+
* `<Device ID>` is the index or name of the target device as listed by `$ tns devices`
2828

2929
<% if(isHtml) { %>
3030
### Command Limitations
@@ -47,9 +47,6 @@ Command | Description
4747
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
4848
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
4949
[emulate](emulate.html) | You must run the emulate command with a related command.
50-
[livesync](livesync.html) | Synchronizes the latest changes in your project to devices.
51-
[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator.
52-
[livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices.
5350
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
5451
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
5552
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.

0 commit comments

Comments
 (0)