Registry / devops / code-push-cli

code-push-cli

JSON →
library3.0.0jsnpmunverified

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.

npm install code-push-cli
INSTALL
IMPORT
SIG · CODE-PUSH-CLI
C
code-push-cli
devopsjavascriptv3.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

code-push
npm install -g code-push-cli # Then use 'code-push <command>' in your terminal
import codePush from 'code-push-cli'
This package is a global command-line interface. It is not designed for programmatic import or usage within a Node.js application via `require` or `import` statements. Its functionality is accessed directly through shell commands after global installation.
code-push release-react
code-push release-react MyAppName <platform> --target-binary-version "1.0.0" --output-dir ./build
import { releaseReact } from 'code-push-cli'
This is a common subcommand pattern used for releasing React Native updates. It's invoked via the main `code-push` command in the terminal, not through programmatic imports. The command handles bundling and uploading.
code-push app add
code-push app add MyAppName-iOS ios react-native code-push app add MyAppName-Android android react-native
import { appAdd } from 'code-push-cli'
This subcommand is used for registering new applications with the CodePush service via the command line. Each platform (iOS/Android) typically requires a separate application registration.

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
code-push --version
Debug
Known issues
breakingThe `code-push-cli` package is officially deprecated and no longer supported by Microsoft. Users should migrate to `AppCenter-CLI` or community-driven alternatives for equivalent functionality, active maintenance, and continued support.
fix
Install `appcenter-cli` globally (`npm install -g appcenter-cli`) and use `appcenter codepush` commands. Alternatively, explore solutions like `NextPush` (`dpctl`), `Revopush` (`@revopush/code-push-cli`), or `Stallion` as drop-in replacements, following their respective migration guides.
affects: >=4.0.0
gotchaMultiple security vulnerabilities (e.g., `vm2`, `ip`, `cookiejar`, `superagent-proxy`) have been identified and patched across various versions. While recent v4.x releases address many of these, using older, unpatched versions can expose development environments to risks.
fix
If you absolutely must use `code-push-cli`, always update to the latest available version (`npm update -g code-push-cli`) to ensure you have the most recent security patches. Ideally, migrate to an actively maintained alternative.
affects: <4.2.3
gotchaThe CodePush service, particularly its backend provided by Microsoft App Center, was retired in March 2025. Even if the CLI is installed, the underlying service it connects to may no longer be operational, or its functionality severely limited.
fix
Migrate to a actively maintained CodePush alternative that provides both a client SDK and a server backend (e.g., AppCenter, NextPush, DeployPulse, Revopush, Stallion, Codemagic, or a self-hosted solution) to ensure operational continuity.
affects: >=4.0.0
Errors
Common errors & fixes
code-push: command not found
The `code-push-cli` package was not installed globally, or the global npm binaries directory is not in your system's PATH.
fix
Run `npm install -g code-push-cli`. If the issue persists on macOS/Linux, you might need `sudo npm install -g code-push-cli` or ensure npm's global bin path is in your shell's PATH environment variable.
Error: No access key specified. Please login by running 'code-push login' or 'code-push register'.
The CLI requires authentication to interact with the CodePush service, and no active session or access key was found.
fix
Execute `code-push register` for initial setup, which launches a browser for authentication. If you have an existing account or access key, use `code-push login` or `code-push login --accessKey <YOUR_ACCESS_KEY>`.
Error: There is no app with the name 'YourAppName' under your account.
The application name provided in a command (e.g., `code-push release-react YourAppName ...`) does not exactly match a registered application associated with your authenticated CodePush account.
fix
Verify the application name for typos. Use `code-push app list` to see all applications registered under your account and their exact names. If the app doesn't exist, create it using `code-push app add <appName>`.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Bingbot
1
Resources
code-push-cli — npm install code-push-cli · libregistry