
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
@ruochuan/mp-cli
Advanced tools
   
显示帮助信息

上传效果

预览效果就是在控制台显示二维码。
npm i @ruochuan/mp-cli -g
# 查看帮助
mp-cli -h
mp-cli --help
# 查看版本号
mp-cli -v
mp-cli --version
# 或者别名 ruochuan-mp-cli 、rmc
ruochuan-mp-cli --help
rmc --help
# 或者不全局安装 npx @ruochuan/mp-cli --help
mp-cli --uploadmp-cli --previewrobot 默认是 1,命令:mp-cli --upload --robot 2mp-cli --upload --drygit commit hash 和作者mp-cli --upload --useSelectmp-cli --upload --useMultiSelectprojectOptions、uploadOptions、previewOptions 配置,参考 wx.config.js 配置参数可以相互结合。
--robot 2 [ 可选 1-30 ]
--dry 空跑
--useSelect 单选
--useMultiSelect 多选批量上传
wx.config.js 配置(更推荐)在当前小程序项目的目录下配置 wx.config.js,这个优先于 .env
按照微信小程序文档配置小程序密钥等,这样就能上传和预览了。如果没有微信小程序,可以自行免费开通个人的微信小程序。
.env在当前小程序项目的目录下配置 .env
configPath json 配置如果需要多选时,需配置 configPath。
# 克隆我写的 mp-cli 工具
git clone https://github.com/lxchuan12/mp-cli.git
cd mp-cli
yarn install
# 没有自己的小程序可以克隆腾讯开源的电商小程序
git clone https://github.com/lxchuan12/tdesign-miniprogram-starter-retail.git
# 切到分支 feature/release-it
git checkout feature/release-it
可以克隆我的项目,到一个目录中,比如 projects 中。
再克隆我的另外一个小程序(腾讯开源的电商小程序),到同一个目录中。比如 projects 中。
ES Module 开发TS文章已完成README-2,也已发布在掘金。
听说你还在用开发者工具上传小程序,我从尤雨溪那学会了基于 miniprogram-ci 开发脚手架工具,提效摸鱼
注意:文章是基于 tag v0.7.0 撰写。后续 mp-cli 会持续更新,文章可能不会更新。
FAQs
   
Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.