🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

weapp-ide-cli

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weapp-ide-cli

让微信开发者工具,用起来更加方便!

2.0.11
latest
Source
npm
Version published
Weekly downloads
89
-48.85%
Maintainers
1
Weekly downloads
 
Created
Source

weapp-ide-cli

微信开发者工具的命令行(v2) 的一个二次封装的包裹实现,来让开发者更加方便的使用微信开发者工具。

要使用命令行,注意首先需要在开发者工具的设置 -> 安全设置中开启服务端口。

快速安装

npm i -g weapp-ide-cli
# or
yarn global add weapp-ide-cli

执行命令

weapp open
# 等价
weapp-ide-cli open

# 在当前命令行所在位置,打开微信开发者工具
weapp open -p
# 等价
weapp open --project

# 在相对的路径,打开微信开发者工具
# 比如 uni-app 就可以在项目目录执行
weapp open -p dist/dev/mp-weixin
# 工具会把相对路径转化为绝对路径,然后打开(绝对路径不转化)

常用命令

  • weapp login 在命令行进行微信扫码登录
  • weapp open -p 启动工具进行调试开发
  • weapp preview 开始预览
  • weapp upload 上传代码
  • weapp quit 关闭开发者工具

自定义配置

weapp config 可以对微信开发者工具的 cli 目录进行配置,而配置文件就存放在用户的 ${homedir}/.weapp-ide-cli/config.json 中,您可以随时进行更改。

比如 windows 存放位置就在 C:\Users\${你的用户名}\.weapp-ide-cli/config.json

更多命令

这个工具本质是一个 cli 二次处理工具,所以绝大部分命令都是透传的。

全部的命令请查看 https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html

Keywords

weapp

FAQs

Package last updated on 02 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts