Skip to content

Commit d7974f4

Browse files
author
Tsvetan Raikov
committed
Added the update command in upgrade article
1 parent 8db0817 commit d7974f4

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

releases/upgrade-instructions.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,45 @@ To upgrade a NativeScript application you need to upgrade several things: Native
1313
### Upgrading the NativeScript tools
1414

1515
You should first upgrade your `tns` (or `nativescript`) command, so go to a command prompt or bash/terminal prompt and type:
16+
1617
```
1718
npm install -g nativescript
1819
```
1920

20-
This will automatically download needed files and will update your computer to the latest version of the NativeScript command line.
21+
This will automatically download needed files and will update your computer to the latest version of the NativeScript command line.
2122
You can type `tns --version` to verify that the new version is installed.
2223

23-
### Upgrading the platforms
24+
### Upgrading the application
25+
26+
You should execute the **update** command in the root folder of your project to upgrade it with the latest versions of iOS/Android runtimes and cross-platform modules.
27+
28+
```
29+
tns update
30+
```
31+
32+
In order to get the latest development release instead, pass **next** as argument:
33+
34+
```
35+
tns update next
36+
```
37+
38+
You can also switch to specific version by passing it to the command:
39+
40+
```
41+
tns update 2.3.0
42+
```
43+
44+
### Upgrading platforms
45+
46+
Follow those steps in order to get the latest versions of Android and/or iOS runtimes. Navigate to the root level folder where your project is, and then if you are working on a Android project, type:
2447

25-
Next, you will need to upgrade your **platforms** in order to get the latest enhancements of the Android and/or iOS runtimes. Navigate to the root level folder where your project is, and then if you are working on a Android project, type:
2648
```
2749
tns platform remove android
2850
tns platform add android
2951
```
3052

31-
and/or (if you are working on a iOS version on a Macintosh):
53+
and/or (if you are working on a iOS version on a Mac):
54+
3255
```
3356
tns platform remove ios
3457
tns platform add ios

0 commit comments

Comments
 (0)