Skip to content

Commit 11f0814

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Help for experimental versions
1 parent 09d674f commit 11f0814

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

resources/help.txt

+15-5
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,20 @@ Lists all platforms that the project currently targets. You can build and deploy
108108
--[platform|add]--
109109

110110
Usage:
111-
$ tns platform add <Platform> [--frameworkPath <File Path>] [--symlink]
111+
$ tns platform add <Platform>[@<Version>] [--frameworkPath <File Path>] [--symlink]
112112

113113
Platform-specific usage:
114114
$ tns platform add android [--frameworkPath <File Path>] [--symlink]
115-
$ tns platform add ios [--frameworkPath <File Path>] [--symlink]
115+
$ tns platform add android[@<Version>] [--frameworkPath <File Path>] [--symlink]
116+
$ tns platform add ios [--frameworkPath <File Path>] [--symlink]
117+
$ tns platform add ios[@<Version>] [--frameworkPath <File Path>] [--symlink]
116118

117119
Configures the current project to target the selected platform.
118120

121+
<Version> is any available version of the respective platform runtime published in npm. If @<Version> is not specified, the NativeScript CLI installs the latest stable runtime for the selected platform.
122+
To list all available versions for android, run $ npm view tns-android versions. To list only experimental versions for android, run $ npm view tns-android dist-tags.
123+
To list all available versions for ios, run $ npm view tns-ios versions. To list only experimental versions for ios, run $ npm view tns-ios dist-tags.
124+
119125
<File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
120126

121127
When you add a target platform, the NativeScript CLI adds a corresponding platform-specific subdirectory under the platforms directory. This platform-specific directory contains the necessary files to let you build your project for the target platform.
@@ -152,11 +158,15 @@ This operation deletes the subdirectory for the selected platform from the platf
152158
--[platform|update]--
153159

154160
Usage:
155-
$ tns platform update <Platform>
161+
$ tns platform update <Platform>[@<Version>]
156162

157163
Platform-specific usage:
158-
$ tns platform update android
159-
$ tns platform update ios
164+
$ tns platform update android[@<Version>]
165+
$ tns platform update ios[@<Version>]
166+
167+
<Version> is any available version of the respective platform runtime published in npm. If @<Version> is not specified, the NativeScript CLI installs the latest stable runtime for the selected platform.
168+
To list all available versions for android, run $ npm view tns-android versions. To list only experimental versions for android, run $ npm view tns-android dist-tags.
169+
To list all available versions for ios, run $ npm view tns-ios versions. To list only experimental versions for ios, run $ npm view tns-ios dist-tags.
160170

161171
Updates the NativeScript runtime for the specified platform.
162172
--[/]--

0 commit comments

Comments
 (0)