CodePush

1Install the CodePush CLI

You manage your CodePush account using our NodeJS-based CLI. To install it, open a command prompt or terminal, and type npm install -g code-push-cli

Note: On OSX and Linux, you may need to prefix this command with sudo

npm install -g code-push-cli

2Create a CodePush account

Before you can release any updates, you first need to create a CodePush account. To do this, simply type the following command via the CLI and authenticate with either your GitHub or Microsoft account: code-push register

3Register your app with the service

In order to let the service know about your app, simply register it using a recognizeable name. For example: code-push app add MyApp

code-push app add <appName>

4CodePush-ify your mobile client

Add the appropriate CodePush clients SDKs to your app, and configure them to query for updates against the app deployment created above.

5Release an app update

After making changes to your app's code or assets, push the update to your staging environment via the following command: code-push release MyApp <package> <appStoreVersion>

code-push release <appName> <package> <appStoreVersion>

6Live long and prosper!

And thats it! All users running your app will receive the update using the experience you configured in step #4. For more details, refer to the CLI and client SDK documentation (Cordova, React Native).