跳转到主要内容

微信客户端管理

管理微信客户端的登录状态、二维码和回调配置

SKILL 名称

SKILL 名称说明
juhecli-wx-client个微客户端管理 - 恢复/停止实例,查询状态/版本,设置通知地址/代理/桥接

退出登录

退出当前微信账号的登录。

语法

bash
juhe-cli wx client logout '{}'

参数

参数类型必填说明
(无)--该命令无需参数

示例

bash
# 退出登录
juhe-cli wx client logout '{}'

获取当前二维码

获取当前微信账号的登录二维码。

语法

bash
juhe-cli wx client get_qr '{}'

参数

参数类型必填说明
(无)--该命令无需参数

示例

bash
# 获取二维码
juhe-cli wx client get_qr '{}'

设置回调 URL

为指定的微信客户端设置消息回调 URL,用于接收实时消息通知。

语法

bash
juhe-cli wx client set_notify_url '{"guid": "xxx", "notify_url": "https://..."}'

参数

参数类型必填说明
guidstring微信客户端的唯一标识
notify_urlstring接收消息回调的 URL 地址

示例

bash
# 设置回调 URL
juhe-cli wx client set_notify_url '{"guid": "abc123", "notify_url": "https://your-server.com/webhook"}'

# 设置本地开发回调
juhe-cli wx client set_notify_url '{"guid": "abc123", "notify_url": "https://ngrok.io/webhook"}'