Indexed by TopGit from live GitHub metadata: microsoft/code-push has 4.4k stars, written primarily in TypeScript. A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Visual Studio App Center was retired on March 31, 2025, except for its Analytics and Diagnostics features. You can learn more about the retirement and the Analytics and Diagnostics extension here. CodePush, along with other App Center features, was also retired on March 31, 2025. Consequently, we are archiving this repository.
Sign up With App Center to use CodePush
CodePush SDK
CodePush SDK enables seamless in-app updates and serves as a core component of the CodePush React Native SDK.
To start integrating CodePush into your project, visit our documentation. If you're interested in contributing or building the SDK from source, follow the steps below.
Visual Studio App Center CodePush Standalone Version
For teams or organizations looking to self-host CodePush, we now offer the CodePush Standalone Version which is compatible with this SDK. It allows you to set up and manage CodePush as a self-hosted service, giving you more control over your infrastructure and data. Visit the repository for installation instructions, usage guides, and more.
Dev Setup
Install Node.js
Install Git
Clone the Repository: git clone https://github.com/Microsoft/code-push.git
Building
Run npm run setup to install the NPM dependencies of management SDK.
Run npm run build to build the management SDK for testing.
Run npm run build:release to build the release version of management SDK.
Running Tests
To run tests, run npm run test from the root of the project.
You can use debug mode for tests with .vscode/launch.json file.
Coding Conventions
Use double quotes for strings
Use four space tabs
Use camelCase for local variables and imported modules, PascalCase for types, and dash-case for file names
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
CodePush Management SDK (Node.js)
A JavaScript library for programmatically managing your CodePush account (e.g. creating apps, promoting releases), which allows authoring Node.js-based build and/or deployment scripts, without needing to shell out to the App Center CLI.
Getting Started
Create a token to authenticate with the CodePush server using the following App Center CLI command:
Please copy your API Token and keep it secret. You won't be able to see it again.
Install the management SDK by running npm install code-push --save
Import it using one of the following statement: (using ES6 syntax as applicable):
On commonjs environments:
const CodePush = require("code-push");
Using ES6 syntax with tsconfig.json:
import CodePush from "code-push";
Create an instance of the CodePush class, passing it the API Token you created or retrieved in step #1:
const codePush = new CodePush("YOUR_API_TOKEN");
Begin automating the management of your account! For more details on what you can do with this codePush object, refer to the API reference section below.
API Reference
The code-push module exports a single class (typically referred to as CodePush), which represents a proxy to the CodePush account management REST API. This class has a single constructor for authenticating with the CodePush service, and a collection of instance methods that correspond to the commands in the App Center CLI, which allow you to programmatically control every aspect of your CodePush account.
Constructors
CodePush(accessKey: string) - Creates a new instance of the CodePush management SDK, using the specified access key to authenticated with the server.
Methods
Note: access key here refers to an AppCenter API Token.
addAccessKey(description: string): Promise<AccessKey> - Creates a new access key with the specified description (e.g. "VSTS CI").
addApp(name: string, os: string, platform: string, manuallyProvisionDeployments: boolean = false): Promise<App> - Creates a new CodePush app with the specified name, os, and platform. If the default deployments of "Staging" and "Production" are not desired, pass a value of true for the manuallyProvisionDeployments parameter.
addCollaborator(appName: string, email: string): Promise<void> - Adds the specified CodePush user as a collaborator to the specified CodePush app.
addDeployment(appName: string, deploymentName: string): Promise<Deployment> - Creates a new deployment with the specified name, and associated with the specified app.
clearDeploymentHistory(appName: string, deploymentName: string): Promise<void> - Clears the release history associated with the specified app deployment.
getAccessKey(accessKey: string): Promise<AccessKey> - Retrieves the metadata about the specific access key.
getAccessKeys(): Promise<AccessKey[]> - Retrieves the list of access keys associated with your CodePush account.
getApp(appName: string): Promise<App> - Retrieves the metadata about the specified app.
getApps(): Promise<App[]> - Retrieves the list of apps associated with your CodePush account.
getCollaborators(appName: string): Promise<CollaboratorMap> - Retrieves the list of collaborators associated with the specified app.
getDeployment(appName: string, deploymentName: string): Promise<Deployment> - Retrieves the metadata for the specified app deployment.
getDeploymentHistory(appName: string, deploymentName: string): Promise<Package[]> - Retrieves the list of releases that have been made to the specified app deployment.
getDeploymentMetrics(appName: string, deploymentName: string): Promise<DeploymentMetrics> - Retrieves the installation metrics for the specified app deployment.
getDeployments(appName: string): Promise<Deployment[]> - Retrieves the list of deployments associated with the specified app.
patchRelease(appName: string, deploymentName: string, label: string, updateMetadata: PackageInfo): Promise<void> - Updates the specified release's metadata with the given information.
promote(appName: string, sourceDeploymentName: string, destinationDeploymentName: string, updateMetadata: PackageInfo): Promise<Package> - Promotes the latest release from one deployment to another for the specified app and updates the release with the given metadata.
release(appName: string, deploymentName: string, updateContentsPath: string, targetBinaryVersion: string, updateMetadata: PackageInfo): Promise<Package> - Releases a new update to the specified deployment with the given metadata.
removeAccessKey(accessKey: string): Promise<void> - Removes the specified access key from your CodePush account.
removeApp(appName: string): Promise<void> - Deletes the specified CodePush app from your account.
removeCollaborator(appName: string, email: string): Promise<void> - Removes the specified account as a collaborator from the specified app.
removeDeployment(appName: string, deploymentName: string): Promise<void> - Removes the specified deployment from the specified app.
renameApp(oldAppName: string, newAppName: string): Promise<void> - Renames an existing app.
renameDeployment(appName: string, oldDeploymentName: string, newDeploymentName: string): Promise<void> - Renames an existing deployment within the specified app.
rollback(appName: string, deploymentName: string, targetRelease?: string): Promise<void> - Rolls back the latest release within the specified deployment. Optionally allows you to target a specific release in the deployment's history, as opposed to rolling to the previous release.
transferApp(appName: string, email: string): Promise<void> - Transfers the ownership of the specified app to the specified account.
Error Handling
When an error occurs in any of the methods, the promise will be rejected with a CodePushError object with the following properties:
message: A user-friendly message that describes the error.
statusCode: An HTTP response code that identifies the category of error:
CodePush.ERROR_GATEWAY_TIMEOUT: A network error prevented you from connecting to the CodePush server.
CodePush.ERROR_INTERNAL_SERVER: An error occurred internally on the CodePush server.
CodePush.ERROR_NOT_FOUND: The resource you are attempting to retrieve does not exist.
CodePush.ERROR_CONFLICT: The resource you are attempting to create already exists.
CodePush.ERROR_UNAUTHORIZED: The access key you configured is invalid or expired.
The most recent commit recorded on microsoft/code-push was 1.3 years ago, based on the GitHub push timestamp. The repository has 531 forks — one of the better signals of community interest.
How many stars does microsoft/code-push have?
microsoft/code-push has 4.4k GitHub stars — refresh the page for the live number, or check github.com/microsoft/code-push. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What else is in the Frontend space?
microsoft/code-push is tracked by TopGit under the Frontend category, alongside 5 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What language is microsoft/code-push written in?
microsoft/code-push is written primarily in TypeScript. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is microsoft/code-push associated with?
GitHub's repository topics for microsoft/code-push: "codepush", "cordova", "react", "react-native", "reactnative". TopGit's editorial category is Frontend.
Where do I read more about microsoft/code-push?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/microsoft/code-push is the definitive source.
Why is microsoft/code-push categorized under Frontend?
TopGit places microsoft/code-push in the Frontend category based on its GitHub topics and description (tagged: "codepush", "cordova", "react"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Curious whether code-push is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about code-push.