name: wacli
description: 通过 wacli CLI 向他人发送 WhatsApp 消息或搜索/同步 WhatsApp 历史记录(不适用于普通用户聊天)。
homepage: https://wacli.sh
metadata: {"clawdbot":{"emoji":"📱","requires":{"bins":["wacli"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/wacli","bins":["wacli"],"label":"安装 wacli (brew)"},{"id":"go","kind":"go","module":"github.com/steipete/wacli/cmd/wacli@latest","bins":["wacli"],"label":"安装 wacli (go)"}]}}
仅在用户明确要求向他人发送 WhatsApp 消息,或要求同步/搜索 WhatsApp 历史记录时使用 wacli。
请勿将 wacli 用于普通用户聊天;Clawdbot 会自动路由 WhatsApp 对话。
如果用户正在 WhatsApp 上与你聊天,除非他们要求你联系第三方,否则不应使用此工具。
wacli auth(扫码登录 + 初始同步)wacli sync --follow(持续同步)wacli doctorwacli chats list --limit 20 --query "姓名或号码"wacli messages search "查询内容" --limit 20 --chat <jid>wacli messages search "invoice" --after 2025-01-01 --before 2025-12-31wacli history backfill --chat <jid> --requests 2 --count 50wacli send text --to "+14155551212" --message "你好!下午3点有空吗?"wacli send text --to "1234567890-123456789@g.us" --message "我会晚到5分钟。"wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "会议议程"~/.wacli(可通过 --store 参数覆盖)。--json 参数可获得机器可读格式。<号码>@s.whatsapp.net;群组为 <ID>@g.us(可通过 wacli chats list 查找)。