CodePush CLI

3.0.0 · deprecated · verified Wed Apr 22

CodePush CLI was a command-line interface designed for the CodePush cloud service, enabling Cordova and React Native developers to deploy mobile app updates directly to user devices. It facilitated over-the-air updates for JavaScript, HTML, CSS, and images, allowing for rapid bug fixes and minor feature additions without requiring new app store submissions. While the last version observed is v4.2.3, which primarily included vulnerability fixes, `code-push-cli` is officially deprecated and no longer supported. Users are strongly advised to migrate to `AppCenter-CLI` or other modern alternatives like `NextPush`, `DeployPulse`, or `Stallion` for continued service and support. Its original key differentiator was enabling swift iteration and a direct engagement model for hybrid app developers.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates the global installation of the CodePush CLI, account registration, adding applications, and performing a basic React Native release to a staging environment, highlighting its deprecated status.

npm install -g code-push-cli

# 1. Register/Login to your CodePush account (opens browser for authentication)
code-push register

# 2. Add an application (e.g., for iOS and Android)
code-push app add MyAwesomeApp-iOS ios react-native
code-push app add MyAwesomeApp-Android android react-native

# 3. List your registered apps to verify
code-push app list

# 4. Release an update for a React Native iOS app to the 'Staging' deployment
# Note: Replace 'MyAwesomeApp-iOS' with your app name and '1.0.0' with your target binary version
code-push release-react MyAwesomeApp-iOS ios --target-binary-version "1.0.0" --description "Initial staging release" --mandatory true

# IMPORTANT: This CLI is deprecated. Consider migrating to AppCenter CLI or alternatives:
# npm install -g appcenter-cli
# appcenter login
# appcenter codepush release-react -a YourOrg/YourApp -d Staging

view raw JSON →