You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Implemented #305](https://github.com/NativeScript/nativescript-cli/issues/305), [#322](https://github.com/NativeScript/nativescript-cli/issues/322): You can quickly add or update your platform runtime to a specific version by running `tns platform update platform@version`<br/>For example: `tns platform update ios@0.9.2-beta`<br/>The NativeScript team will publish experimental support for the latest versions of iOS and Android.<br/>To list all available versions for android, run $ npm view tns-android versions<br/>To list only experimental versions for android, run $ npm view tns-android dist-tags
10
+
To list all available versions for ios, run $ npm view tns-ios versions<br/>To list only experimental versions for ios, run $ npm view tns-ios dist-tags
11
+
*[Implemented #302](https://github.com/NativeScript/nativescript-cli/issues/302): You can configure proxy settings for the NativeScript CLI.
12
+
13
+
### Fixed
14
+
15
+
*[Fixed #299](https://github.com/NativeScript/nativescript-cli/issues/299): You cannot build the default `Hello World` app for Android on OS X systems.
16
+
*[Fixed #297](https://github.com/NativeScript/nativescript-cli/issues/297): You cannot install the NativeScript CLI.
The NativeScript CLI is available for installing as an npm package.
207
211
208
212
In the command prompt, run the following command.
@@ -213,6 +217,18 @@ npm install nativescript -g
213
217
214
218
> On OS X and Linux systems, you might need to run this command using sudo.
215
219
220
+
## Configure Proxy Usage
221
+
222
+
If you are working with the NativeScript CLI behind a web proxy, you might need to configure your proxy settings.
223
+
224
+
1. On your file system, locate the directory where the **nativescript** npm package is installed.
225
+
1. In a text editor, open `config`→`config.json`.
226
+
1. Set `USE_PROXY` to `true`.
227
+
1. Set `PROXY_PORT`.
228
+
1. Set `PROXY_HOSTNAME`.
229
+
230
+
> Make sure to preserve the quotation marks and commas as in the initial `config.json` file.
231
+
216
232
[Back to Top][1]
217
233
218
234
Quick Start
@@ -334,6 +350,9 @@ For more information about the structure of Android native projects, see [Androi
334
350
335
351
For more information about the structure iOS native projects, see [Code Organization in Xcode Projects](http://akosma.com/2009/07/28/code-organization-in-xcode-projects/).
336
352
353
+
> **TIP:** The NativeScript team provides experimental support for the latest versions of iOS and Android. You can choose which platform runtime to use in your project by running `tns platform add <platform>@<Version>`<br/>To list all available versions for android, run $ npm view tns-android versions<br/>To list only experimental versions for android, run $ npm view tns-android dist-tags
354
+
To list all available versions for ios, run $ npm view tns-ios versions<br/>To list only experimental versions for ios, run $ npm view tns-ios dist-tags
Configures the current project to target the selected platform.
118
120
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
+
119
125
<File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
120
126
121
127
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
152
158
--[platform|update]--
153
159
154
160
Usage:
155
-
$ tns platform update <Platform>
161
+
$ tns platform update <Platform>[@<Version>]
156
162
157
163
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.
160
170
161
171
Updates the NativeScript runtime for the specified platform.
0 commit comments