Skip to main content

CLI command reference

CLI command reference

Install with npm install -g @codemagic/patch-cli (Node.js >=20), then run cmpatch help for grouped topics, or cmpatch <command> --help for full flags.

Auth and config

CommandDescription
cmpatch login / logout / whoamiBrowser sign-in via the dashboard (or --token) / sign out / identity
cmpatch token create | list | revokeManage personal access tokens (cm_pat_…)
cmpatch config list | get | set | unsetStore defaults: server-url, team, team-id
cmpatch initWrite codemagic-patch.config.json for a project
cmpatch contextShow the effective resolved context; add --remote to include server SDK configuration (downloadBaseUrl)

Apps and deployments

CommandDescription
cmpatch app create | list | show | rename | remove | settingManage apps (and code-signing)
cmpatch deployment create | list | rename | remove | clearManage deployments
cmpatch deployment history | metricsRelease history / aggregate metrics

Releases

CommandDescription
cmpatch release-reactBuild and publish from an RN project
cmpatch bundleBuild a .cmpatch artifact without uploading
cmpatch release createPublish a pre-built bundle / .cmpatch
cmpatch release list | show | inspectBrowse releases; inspect --wait to poll
cmpatch release patch | enable | disableEdit metadata / toggle availability
cmpatch release promoteCopy a release to another deployment
cmpatch release rollbackRevert to the previous release
cmpatch release metricsMetrics for one release

Members and diagnostics

CommandDescription
cmpatch member add | invite | provision | list | remove …Team membership and invitations
cmpatch doctorCheck local readiness before publishing
cmpatch fingerprint --platform ios|androidCompute the native fingerprint

List/metrics commands accept --format table|json.