hot-push-cli简单使用

HOT PUSH 记录

  • 安装依赖
 yarn global add code-push-cli
 yarn add react-native-code-push
 react-native link

code-push-cli 简单使用

添加APP

code-push app add RnHotUpdateDemo ios react-native

查看部署环境KEY

code-push deployment ls -k

部署环境添加、删除、重命名

code-push deployment add  
code-push deployment rm  
code-push deployment rename   

提交新的更新

[E.g]  code-push release-react   --des '修复BUG' -t 1.06

    code-push release-react      
    [--bundleName ]
    [--deploymentName ] `//(部署环境名)参数 -d`
    [--description ] `//(描述)参数 -des`
    [--development ]
    [--disabled ] `"(设为补丁,不可被下载) -x"`
    [--entryFile ]
    [--gradleFile ]
    [--mandatory] `(强制性)参数 -m`
    [--noDuplicateReleaseError]
    [--outputDir ]
    [--plistFile ]
    [--plistFilePrefix ]
    [--sourcemapOutput ]
    [--targetBinaryVersion ]  `(可更新目标版本)参数 -t`
    [--rollout ]
    [--privateKeyPath ]
    [--config ]

查看发布的更新历史

code-push deployment history  
    [--displayAuthor]

清楚历史

code-push deployment clear  

你可能感兴趣的:(hot-push-cli简单使用)