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
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,15 +47,14 @@ So as long as you don't change versions of dependencies and tns platforms in you
47
47
can push happily. And if you do bump a version of a dependency make sure there are no changed platform libraries.
48
48
49
49
## Getting Started
50
-
> ⚠️ TODO test this workflow!
51
50
52
51
#### Globally install the NativeScript CodePush CLI
53
52
54
53
```shell
55
54
npm i -g nativescript-code-push-cli
56
55
```
57
56
58
-
> 💁♂️ This will also add the global `nativescript-code-push` command to your machine.
57
+
> 💁♂️ This will also add the global `nativescript-code-push` command to your machine. You can check the currently installed version with `nativescript-code-push -v`.
59
58
60
59
#### Login or register with the service
61
60
@@ -71,10 +70,21 @@ Register if you don't have an account yet:
71
70
nativescript-code-push register
72
71
```
73
72
73
+
This will open a browser where you can provide your credentials, after which you can create an access key that
74
+
you can paste in the console.
75
+
76
+
You should now have a `.nativescript-code-push.config` file in your home folder which will automatically
77
+
authenticate you with the server from now on.
78
+
79
+
> Note that you _could_ use a that web interface for managing you apps, but the CLI is much more sophisticated, so it's recommended to use the command line interface.
> ⚠️ If you're restricting access to the internet from within your app, make sure you whitelist `https://nativescript-codepush-server.herokuapp.com`.
106
+
> ⚠️ If you're restricting access to the internet from within your app, make sure you whitelist the `serverUrl` (`https://nativescript-codepush-server.herokuapp.com` by default) and file server (`https://s3.eu-west-1.amazonaws.com`).
97
107
98
108
## Checking for updates
99
109
With the CodePush plugin installed and configured, the only thing left is to add the necessary code to your app to control when it checks for updates.
0 commit comments