Overview of wacli functionality
mainwacli is a Go-based CLI that pairs as a linked WhatsApp Web device. It mirrors message history into a local SQLite database with FTS5 full-text search capabilities. It is designed for use in terminals, shell pipelines, and by AI coding agents.
Key capabilities include:
- Message Syncing: Mirrors messages and status broadcasts to a local SQLite store.
- Search: Fast, offline message searching via SQLite FTS5.
- Chat Management: Control chat states (archive, pin, mute, read/unread) and filter lists by these states.
- Scripting Support: Provides stable output via human-readable tables,
--jsonfor stdout, and NDJSON via--eventsfor long-running commands. Progress and errors are sent to stderr to keep pipes clean. - Agent-Friendly Mode: Use
--read-only(orWACLI_READONLY=1) to prevent any commands from mutating WhatsApp or local state. - Storage Management: Cap local growth using
--max-messagesor--max-db-size.