命令:
add Add a new deployment to an app
clear Clear the release history associated with a deployment
remove Remove a deployment from an app
rm Remove a deployment from an app
rename Rename an existing deployment
list List the deployments associated with an app
ls List the deployments associated with an app
history Display the release history for a deployment
h Display the release history for a deployment
查看部署的历史版本信息: code-push deployment history <appName> <deploymentNmae>
命令:
access-key View and manage the access keys associated with your account
app View and manage your CodePush apps
collaborator View and manage app collaborators
debug View the CodePush debug logs for a running app
deployment View and manage your app deployments
link Link an additional authentication provider (e.g. GitHub) to an existing CodePush account
login Authenticate with the CodePush server in order to begin managing your apps
logout Log out of the current session
patch Update the metadata for an existing release
promote Promote the latest release from one app deployment to another
register Register a new CodePush account
release Release an update to an app deployment
release-cordova Release a Cordova update to an app deployment
release-react Release a React Native update to an app deployment
rollback Rollback the latest release for an app deployment
session View and manage the current login sessions associated with your account
whoami Display the account info for the current login session
错误:The uploaded package was not released because it is identical to the contents of the specified deployment's current release.
上载的包没有被释放,因为它与指定部署的当前版本的内容相同。
原因:当前项目没有改变 或者修改后没有保存 导致md5相同
命令 | 解释 |
code-push app add <app名称> <平台> <react-native 固定字段> | 在服务器创建一个新的app |
code-push ls | 展示服务器上所有app |
code-push deployment ls<app名称> | 展示 app的状态 |
code-push deployment ls<app名称> -k | 展示app状态 +Deployment key |
code-push release-react <app名称> <平台名称(Android,ios,Windows)> | 向服务器推送最新代码,需要在RN根目录执行 |
code-push promote <appName> Staging Production | 将测试环境推送到正式环境 |
code-push rollback <app名称> <发布状态 Staging 或Production> --targetRelease<要回退的版本号 例如:v3> |
对已发布的版本回滚
|