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
code-push-standalone release-react APP_NAME_CREATED_ABOVE ios -d Staging# -d refers to the deployment name e.g. Production, Staging
77
-
code-push-standalone release-react APP_NAME_CREATED_ABOVE android -d Staging # -d refers to the deployment name e.g. Production, Staging
74
+
code-push release-react APP_NAME_CREATED_ABOVE ios -d Staging# -d refers to the deployment name e.g. Production, Staging
75
+
code-push release-react APP_NAME_CREATED_ABOVE android -d Staging # -d refers to the deployment name e.g. Production, Staging
78
76
{{< /highlight >}}
79
77
80
78
{{<notebox>}}
81
79
**Note**: **$CODEPUSH_TOKEN** for authentication will be provided by the Codemagic team and it needs to be added as an environment variable and then imported in **codemagic.yaml**. More info can be found [here](https://docs.codemagic.io/yaml-basic-configuration/configuring-environment-variables/)
82
80
{{</notebox>}}
83
81
84
82
{{<notebox>}}
85
-
**Note**: Running **code-push-standalone release-react** generates updates and releases them to the server to be served
83
+
**Note**: Running **code-push release-react** generates updates and releases them to the server to be served
86
84
{{</notebox>}}
87
85
88
86
89
87
7. In order to reveal the Deployment keys, run **code-push-standalone deployment ls YOUR_APP_NAME -k**
90
88
8. By default, you get two Deployment channels: Staging and Production. You can add new ones, rename or delete them by running the following commands:
91
89
92
90
{{< highlight bash "style=paraiso-dark">}}
93
-
To Add: code-push-standalone deployment add <appName> <deploymentName>
94
-
To Remove: code-push-standalone deployment rm <appName> <deploymentName>
95
-
To Rename: code-push-standalone deployment rename <appName> <deploymentName> <newDeploymentName>
91
+
To Add: code-push deployment add <appName> <deploymentName>
92
+
To Remove: code-push deployment rm <appName> <deploymentName>
93
+
To Rename: code-push deployment rename <appName> <deploymentName> <newDeploymentName>
96
94
{{< /highlight >}}
97
95
98
96
9. Likewise, apps can be added, renamed and deleted:
99
97
100
98
{{< highlight bash "style=paraiso-dark">}}
101
-
To Add: code-push-standalone app add <appName>
102
-
To Rename: code-push-standalone app rename <appName> <newAppName>
103
-
To Delete: code-push-standalone app rm <appName>
99
+
To Add: code-push app add <appName>
100
+
To Rename: code-push app rename <appName> <newAppName>
101
+
To Delete: code-push app rm <appName>
104
102
{{< /highlight >}}
105
103
106
-
10. If you need to patch releases e.g. you need to make a change in a previous release e.g. increase rollout percentage, a missed bug fix etc. you can achieve it by running **code-push-standalone patch <appName> <deploymentName>**
104
+
10. If you need to patch a previous release, e.g. increase the rollout percentage, push a missed bug fix or similar, you can achieve it by running **code-push patch <appName> <deploymentName>**
107
105
108
-
11. You cannot delete a deployment release history but you can roll it back in case any release was shipped with a broken feature or anything, by running **code-push-standalone rollback <appName> <deploymentName>**
106
+
11. You cannot delete a deployed release, but you can roll back a release by running **code-push rollback <appName> <deploymentName>**
109
107
110
108
12. After testing an update against a deployment channel, it is possible to promote it by running the following command:
You can log into your account using the CodePush access key provided by Codemagic.
127
123
128
-
The CodePush CLI reference is available [here](https://github.com/microsoft/code-push-server/tree/main/cli).
124
+
The CodePush CLI reference is available [here](https://github.com/codemagic-ci-cd/code-push-pro).
129
125
130
-
To view deployments, update metadata, and installation metrics you can use the `code-push-standalone deployment ls <app_name>` command as described in the CodePush CLI docs [here](https://github.com/microsoft/code-push-server/tree/main/cli#:~:text=If%20at%20any%20time%20you%27d%20like%20to%20view%20the%20list%20of%20deployments%20that%20a%20specific%20app%20includes%2C%20you%20can%20simply%20run%20the%20following%20command%3A)
126
+
To view deployments, update metadata, and installation metrics you can use the `code-push deployment ls <app_name>` command as described in the CodePush CLI docs [here](https://github.com/codemagic-ci-cd/code-push-pro?tab=readme-ov-file#deployment-management)
131
127
132
128
133
129
## Debugging notes
@@ -138,4 +134,4 @@ If your project **Info.plist** file key **CFBundleShortVersionString** does not
138
134
[Error] The "CFBundleShortVersionString" key in the "ios/Codemagic_RN/Info.plist" file needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).
139
135
{{< /highlight >}}
140
136
141
-
The solution is to either change the value in **Info.plist** file to a semver string value which is not recommended, or the best option is to add **--targetBinaryVersion** to the build/release command: **code-push-standalone release-react iOS ios --targetBinaryVersion 1.0.0**
137
+
The solution is to either change the value in **Info.plist** file to a semver string value which is not recommended, or the best option is to add **--targetBinaryVersion** to the build/release command: **code-push release-react iOS ios --targetBinaryVersion 1.0.0**
0 commit comments