BTC
ETH
SOL
BNB
GOLD
XRP
DOGE
ADA
Back to home
Tech

Wacli – WhatsApp CLI: sync, search, send

WhatsApp users stuck on mobile apps now have a CLI option: Wacli, an open-source Rust tool that syncs chat history, searches messages, and sends texts from the terminal.

WhatsApp users stuck on mobile apps now have a CLI option: Wacli, an open-source Rust tool that syncs chat history, searches messages, and sends texts from the terminal. It hit Hacker News recently, sparking 200+ comments on automation needs versus ban risks. Developers praise its speed; privacy hawks question Meta’s tolerance.

This matters because WhatsApp’s 2.5 billion users lack official desktop APIs or bulk export tools. Wacli bridges that with multi-device support, pulling your full history without cloud backups. Run wacli sync once, and you get searchable SQLite dumps—far better than WhatsApp’s 7-day web export limit.

How Wacli Works

Built on the Baileys library, Wacli reverse-engineers WhatsApp Web’s multi-device protocol. No phone tethering needed after initial QR scan. Install via Cargo:

cargo install wacli

Setup scans a QR like the web app, storing session keys locally.

Core commands:

$ wacli chats          # List recent chats
$ wacli sync --all     # Download full history to SQLite
$ wacli search "bitcoin" --from alice --limit 50  # Keyword hunt
$ wacli send --chat group1 "Meeting at 3PM"       # Fire off messages

It handles media too—download attachments with wacli media. Data lives in ~/.local/share/wacli as encrypted SQLite, searchable via SQL or CLI filters. Rust ensures it’s lightweight: syncs gigabytes in hours on a laptop.

Risks and Limitations

Skeptical take: This violates WhatsApp’s ToS. Meta bans accounts for automation—Baileys users report 1-5% hit rate, per Reddit threads. Wacli mitigates with rate limits and human-like delays, but updates to WhatsApp Web can break it overnight. Last Baileys fork lag? Two weeks.

Setup hurdles: QR scan requires your phone online initially. No E2EE for sent messages in CLI (still server-routed). Search is local-only post-sync; live queries poll WebSocket. No voice/video calls—text and media dominate.

Fair comparison: Alternatives like whatsapp-cli (Node.js, abandoned) or whatsmeow (Go) exist, but Wacli’s Rust edge shines in speed and battery life. Yowsup died years ago after bans.

Privacy angle: Local sync beats WhatsApp’s servers. Export chats as JSON/SQL for your own backups—no Google Drive reliance. Devs script it for notifications: pipe searches to tmux or integrate with mutt for email-like threading.

Why This Matters for Power Users

In a world of siloed apps, Wacli unlocks WhatsApp data for terminals. Sysadmins monitor alerts via cron jobs. Journalists search years of sources offline. Crypto traders get price pings without app bloat.

Broader implications: Highlights Meta’s grip. No official API means devs risk bans for basics like bulk messaging. EU’s DMA might force openness, but until then, tools like this thrive underground. HN buzz (top 50, 300 points) shows demand—forks incoming.

Bottom line: Grab it if you live in CLI. Test on a burner account first. It future-proofs your chats against app lock-in, but weigh ban odds. At 10k GitHub stars potential, expect Meta scrutiny soon.

April 15, 2026 · 3 min · 5 views · Source: Hacker News

Related