mde-cli
v1.0.41
Published
A CLI for Mobile Application Engine projects, we provide mde-template to quickly build small and medium sized app.
Downloads
7
Maintainers
Readme
mde-cli
mde-cli 是 配合 Mobile Develop Engine 框架使用的命令行工具
命令行使用
1、安装
npm i mde-cli -g
如果出现permission denied
等相关权限的错误提示,请使用管理员身份或root身份运行,如 mac:sudo npm i mde-cli -g
。
2、更新
npm update mde-cli -g
3、使用
3-1、创建应用
mde create [projectName]
- projectName: 工程名称(选题,默认:
mde-app
)
3-2、项目主框架升级至最新版本
mde update
3-3、调试开发
mde dev
3-4、编译构造
mde build
3-5、创建vue页面示例模板
mde vue [pageName]
- pageName: 页面名称
3-6、安装插件
mde plugin [command] [pluginName]
- command: 命令(安装:
install
,卸载:uninstall
,修复:repair
,创建:create
,发布:publish
) - pluginName: 插件名称(插件列表可以查看https://mde.dalibeans.com.cn/markets/)
- command为
repair
时pluginName可留空。
//安装插件示例:
mde plugin install pay
//卸载插件示例:
mde plugin uninstall pay
//修复插件示例:
mde plugin repair
//创建插件示例:
mde plugin create pluginDemo
//发布插件示例:
mde plugin publish pluginDemo
3-7、App设置(应用名称、版本等)
mde setting
3-8、设置App模板(初始化演示模板)
mde setdemo
3-9、一键云修复文件(热更新)
mde repair
3-10、一键设置应用图标
mde icons [id]
- id: 图标资源ID,生成地址:https://console.mde.app/#/tools/icons
3-11、一键设置应用启动图
mde launchimage [id]
- id: 启动图资源ID,生成地址:https://console.mde.app/#/tools/launchimage
3-12、登录云中心
mde login
3-13、登出云中心
mde logout
3-14、备份项目开发文件
mde backup
3-15、恢复项目开发文件
mde recovery
4、版本及帮助
mde -v // 查看当前cli版本
mde -h // 命令帮助信息