跳转到主要内容

客户端管理

企微客户端相关命令

客户端管理命令用于控制和管理企业微信客户端的各种操作。

SKILL 名称说明
juhecli-client企微客户端管理 - 恢复/停止实例,升级版本,设置通知地址/代理/桥接

更新客户端类型

语法

bash
juhe-cli client update '{"guid": "xxx", "new_client_type": 1}'

参数

参数类型必填说明
guidstring设备唯一标识
new_client_typenumber新的客户端类型

示例

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"}'

参数

参数类型必填说明
guidstring设备唯一标识
proxystring代理地址(如: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"}'

参数

参数类型必填说明
guidstring设备唯一标识

示例

bash
juhe-cli client stop '{"guid": "your-guid"}'

设置通知URL

语法

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

参数

参数类型必填说明
guidstring设备唯一标识
notify_urlstring通知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://..."}'

参数

参数类型必填说明
guidstring设备唯一标识
proxystring代理地址(如: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"}'

参数

参数类型必填说明
guidstring设备唯一标识
bridgestring桥接ID

示例

bash
juhe-cli client set_bridge '{"guid": "your-guid", "bridge": "bridge-id"}'