The CodePush Server is a Node.js application that powers the CodePush Service. It allows users to deploy and manage over-the-air updates for their react-native applications in a self-hosted environment.
Please refer to react-native-code-push for instructions on how to onboard your application to CodePush.
Documents:
The CodePush CLI is a Node.js application that allows users Download CodePush CLI
- Clone the CodePush Service repository.
- Install the necessary dependencies by running npm install.
- Build the CLI by running npm run build.
- Install CLI globally by running npm install -g.
Register and log in to your self-hosted CodePush server:
code-push-standalone register https://codepush.domain.com
code-push-standalone login https://codepush.domain.com
List all deployments of an app in JSON format:
code-push-standalone deployment ls [app name] --format json
Example:
code-push-standalone deployment ls App_iOS --format json
Get the history of bundle updates for a specific deployment:
code-push-standalone deployment history [app name] [deployment] --format json
Example:
code-push-standalone deployment history App_Android Staging --format json
Disable or enable a specific bundle version:
code-push-standalone patch [app name] [deployment] -l [id] --disabled [true | false]
Example:
code-push-standalone patch App_Android Production -l v5 --disabled true
Update the description of a specific bundle version:
code-push-standalone patch [app name] [deployment] -l [id] --des [string description]
Example:
code-push-standalone patch App_Android Production -l v5 --des ""
Move a bundle from one deployment to another:
code-push-standalone promote [app name] [current deployment] [new deployment] -l [id]
Example:
code-push-standalone promote App_Android Test Staging -l v1
Revert to a previous bundle version in case of issues:
code-push-standalone rollback [app name] [deployment] [target_label]
Example:
code-push-standalone rollback App_Android Production v4
code-push-standalone login https://codepush.domain.com
code-push-standalone register https://codepush.domain.com
code-push-standalone deployment ls App_Android --format json
code-push-standalone deployment ls App_IOS --format json
code-push-standalone deployment ls App_IOS --format json
code-push-standalone deployment history App_IOS Test --format json
code-push-standalone deployment history App_Android Test --format json
"ios-check-env": "code-push-standalone deployment ls App_IOS --format json",
"ios-update-content":"code-push-standalone patch App_IOS Test --des \"description\"",
"ios-push":"code-push-standalone release-react App_IOS ios -d Test -t 2 -p ios/App/Info.plist -o ios/build",
"ios-disabled-latest_bundle":"code-push-standalone patch App_IOS Test --disabled true"