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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,11 +167,11 @@ The easiest way to do this is to use the `release-nativescript` command in our C
167
167
|deploymentName|d|"Staging"|Deploy to either "Staging" or "Production".
168
168
|description|des||Description of the changes made to the app with this release.
169
169
|targetBinaryVersion|t||Semver expression that specifies the binary app version(s) this release is targeting (e.g. 1.1.0, ~1.2.3).
170
-
|mandatory|m|not set, so "optional"|This specifies whether the update should be considered mandatory or not (e.g. it includes a critical security fix). This attribute is simply round tripped to the client, who can then decide if and how they would like to enforce it. This is flag, so its absence indicates an optional release.
170
+
|mandatory|m|not set|This specifies whether the update should be considered mandatory or not (e.g. it includes a critical security fix). This attribute is simply round tripped to the client, who can then decide if and how they would like to enforce it. This is flag, so its absence indicates an optional release.
171
171
172
172
Have a few examples for both platforms:
173
173
174
-
### iOS
174
+
####iOS
175
175
176
176
```shell
177
177
nativescript-code-push release-nativescript <codepush-ios-appname> ios # deploy to Staging
nativescript-code-push release-nativescript <codepush-ios-appname> ios --mandatory --description "My mandatory iOS version"# mandatory release for iOS
181
181
```
182
182
183
-
### Android
183
+
####Android
184
184
185
185
```shell
186
186
nativescript-code-push release-nativescript <codepush-android-appname> android # deploy to Staging
187
187
nativescript-code-push release-nativescript <codepush-android-appname> android --d Production # deploy to Production (default: Staging)
188
188
nativescript-code-push release-nativescript <codepush-android-appname> android --targetBinaryVersion ~1.0.0 # release to users running any 1.x version (default: the exact version in AndroidManifest.xml)
189
189
```
190
190
191
-
### Tips
192
-
> Make sure to create a *release build* first, so use the same command that you'd use for app store distribution, just don't send it to the AppStore. You can even Webpack and Uglify your app, it's all transparent to this plugin.
191
+
> ⚠️ Make sure to create a *release build* first, so use the same command that you'd use for app store distribution, just don't send it to the AppStore. You can even Webpack and Uglify your app, it's all transparent to this plugin.
193
192
194
-
> When releasing updates to CodePush, you do not need to bump your app's version since you aren't modifying the app store version at all. CodePush will automatically generate a "label" for each release you make (e.g. `v3`) in order to help identify it within your release history.
193
+
> 💁♂️ When releasing updates to CodePush, you do not need to bump your app's version since you aren't modifying the app store version at all. CodePush will automatically generate a "label" for each release you make (e.g. `v3`) in order to help identify it within your release history.
194
+
195
+
## CodePush CLI tricks
196
+
Here are a few commands you may find useful:
195
197
196
198
### Which releases did I create and what are the install metrics?
197
199
Using a command like this will tell you how many apps have the update installed:
@@ -206,7 +208,6 @@ Which produces something like this:
206
208
|---|---|---|---|---|---
207
209
|v2|an hour ago|1.0.0|Yes|Mandatory iOS version!|Active: 11% (2 of 19)
208
210
|||||Total: 2|
209
-
||||||
210
211
|v1|2 hours ago|1.0.0|No|Awesome iOS version!|Active: 26% (5 of 19)
211
212
|||||Total: 5|
212
213
@@ -228,7 +229,6 @@ Which produces something like this:
0 commit comments