淘宝开放 CI、CD命令行工具,用于集成构建、公共机器构建流水线等场景中,方便自动化生成预览码、上传小程序等。
npm install tb-open-cli -g
tbopen -h
tbopen [action] -h e.g. tbopen preview -h
tbopen login
// 此命令借助chrome 默认会去寻找电脑中的chrome浏览器所在.如果发生相关错误找不到,也可以通过指定后使用
tbopen config set PUPPETEER_PATH /Applications/Google Chrome.app/Contents/MacOS/Google\ Chrome
tbopen app --appId [appId]
tbopen preview --appId [appId] --type [type]
tbopen upload --appId [appId] --type [type]
设置值: tbopen config set [key] [value] e.g. tbopen config set key1 value1
获取值: tbopen config get [key] e.g. tbopen config get key1
显示所有值: tbopen config show