客户端管理
企微客户端相关命令
客户端管理命令用于控制和管理企业微信客户端的各种操作。
| SKILL 名称 | 说明 |
|---|---|
juhecli-client | 企微客户端管理 - 恢复/停止实例,升级版本,设置通知地址/代理/桥接 |
更新客户端类型
语法
bash
juhe-cli client update '{"guid": "xxx", "new_client_type": 1}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
| new_client_type | number | 是 | 新的客户端类型 |
示例
bash
juhe-cli client update '{"guid": "your-guid", "new_client_type": 1}'恢复客户端
语法
bash
juhe-cli client restore '{"guid": "xxx", "proxy": "socks5://127.0.0.1:1080"}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
| proxy | string | 否 | 代理地址(如:socks5://127.0.0.1:1080) |
示例
bash
juhe-cli client restore '{"guid": "your-guid", "proxy": "socks5://127.0.0.1:1080"}'停止客户端
语法
bash
juhe-cli client stop '{"guid": "xxx"}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
示例
bash
juhe-cli client stop '{"guid": "your-guid"}'设置通知URL
语法
bash
juhe-cli client set_notify_url '{"guid": "xxx", "notify_url": "https://..."}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
| notify_url | string | 是 | 通知URL地址 |
示例
bash
juhe-cli client set_notify_url '{"guid": "your-guid", "notify_url": "https://your-server.com/webhook"}'设置代理
语法
bash
juhe-cli client set_proxy '{"guid": "xxx", "proxy": "socks5://..."}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
| proxy | string | 是 | 代理地址(如:socks5://127.0.0.1:1080) |
示例
bash
juhe-cli client set_proxy '{"guid": "your-guid", "proxy": "socks5://127.0.0.1:1080"}'设置桥接
语法
bash
juhe-cli client set_bridge '{"guid": "xxx", "bridge": "bridge-id"}'参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| guid | string | 是 | 设备唯一标识 |
| bridge | string | 是 | 桥接ID |
示例
bash
juhe-cli client set_bridge '{"guid": "your-guid", "bridge": "bridge-id"}'