@vexor_ai/codepush-cli
v0.1.9
Published
PNPM-safe CLI for self-hosted CodePush Server releases.
Downloads
1,564
Readme
@vexor_ai/codepush-cli
PNPM-safe CLI for self-hosted CodePush Server releases.
Create or join your workspace in the admin UI first. The default CLI login opens the CodePush Server token page and saves the pasted access key locally.
pnpm add -g @vexor_ai/codepush-cli
vexor-codepush login
vexor-codepush apps
vexor-codepush deployments --app CodexSmokeTest-iOS
vexor-codepush app add --name CodexSmokeTest-iOS --os ios
vexor-codepush deployment add --app CodexSmokeTest-iOS --name StagingYou can also run commands without global install:
pnpm dlx @vexor_ai/codepush-cli login
pnpm dlx @vexor_ai/codepush-cli appsRelease a prepared bundle directory:
vexor-codepush release \
--app CodexSmokeTest-iOS \
--deployment Staging \
--target "*" \
--contents build/ota-ios \
--description "Smoke OTA release"Bundle and release a React Native app:
vexor-codepush release-react \
--app CodexSmokeTest-iOS \
--platform ios \
--deployment Staging \
--target "*"By default, release-react builds into build/ota-ios or build/ota-android, uploads the bundle, and then removes that generated folder after a successful release. If you pass --outputDir, the CLI keeps that custom directory.
If the server accepts the upload as a background job, the CLI waits for the job to finish and then prints the final result. That avoids long-running release requests getting cut off by Cloudflare-style proxy timeouts.
Auth options:
vexor-codepush loginopens the CodePush Server login/token page, then asks you to paste the generated access key.vexor-codepush login --token <access-key>saves an existing access key directly.- For CI/CD, create an access key in Admin UI and use
vexor-codepush login --token <access-key>orCODEPUSH_TOKEN=<access-key>. - Account/password login is disabled by default. It remains available only for emergency migration with
CODEPUSH_ALLOW_PASSWORD_LOGIN=1. - Use the same account you registered in the admin UI /
code-push-server. vexor-codepush statusshows the saved session.vexor-codepush logoutremoves the saved session.CODEPUSH_TOKEN=<jwt-or-access-key>still works as a per-command override.--serverUrl https://cp.vexor.one--workspaceId <workspace-id>scopes app/release/deployment commands to one workspace. You can also setCODEPUSH_WORKSPACE_ID.
