NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...2 min read

Wacli – WhatsApp CLI: sync, search, send

Share
NOW LET US Article – Wacli – WhatsApp CLI: sync, search, send

Wacli is a powerful third-party WhatsApp CLI tool built on whatsmeow, enabling local message synchronization, fast offline search, and account management directly from the terminal.

Introduction to Wacli

In the world of developers and CLI enthusiasts, managing messaging apps directly from the terminal is an essential need. Wacli emerges as an optimal solution for WhatsApp users. Built on top of the whatsmeow library, Wacli focuses on local data synchronization, fast search, and message management without the need for a graphical user interface.

This is a third-party tool that utilizes the WhatsApp Web protocol via whatsmeow and is not officially affiliated with WhatsApp.

Core Features

Wacli is more than just a messaging app; it is designed to optimize the workflow of professional users:

  • Local Synchronization: Supports best-effort local sync of message history and continuous capture.
  • Fast Offline Search: Powered by SQLite FTS5, allowing users to search through message history instantly without an internet connection.
  • Multimedia Messaging: Supports sending text and files with customizable display names.
  • Contact & Group Management: Easily list groups, rename them, and manage participants.
  • JSON Output Support: Allows data to be exported in machine-readable format for automation integration.

Installation Guide

Users can install Wacli through two primary methods:

  1. Via Homebrew (macOS/Linux):

    brew install steipete/tap/wacli
    
  2. Build from Go source:

    go build -tags sqlite_fts5 -o ./dist/wacli ./cmd/wacli
    

The default storage directory is ~/.wacli, which can be overridden using the --store flag.

Basic Commands

Here are some common commands to get started with Wacli:

  • Authentication: Displays a QR code for login.
    wacli auth
    
  • Synchronization: Maintains connection and captures new messages.
    wacli sync --follow
    
  • Search Messages:
    wacli messages search "meeting"
    
  • Send Text Message:
    wacli send text --to 1234567890 --message "hello"
    
  • Send File:
    wacli send file --to 1234567890 --file ./pic.jpg --caption "hi"
    

History Backfill Mechanism

A notable feature of Wacli is its ability to fetch older message history (Backfill). However, users should keep several technical points in mind:

  • Best-effort: History retrieval depends on WhatsApp servers and does not guarantee 100% recovery of old data.
  • Primary Device Requirement: Your primary phone must be online to respond to history sync requests.
  • How it works: Wacli uses the oldest locally stored message in a chat as an anchor to request previous messages.

Command to backfill history for a specific chat:

wacli history backfill --chat [JID] --requests 10 --count 50

Conclusion

Wacli is a powerful tool that brings maximum flexibility to WhatsApp users who want to control their data directly from the command line. With its robust search capabilities and smart sync mechanism, it is a must-have utility in any software engineer's toolkit.

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – Swift at Apple: Migrating the TrueType hinting interpreter

dev-tools

Swift at Apple: Migrating the TrueType hinting interpreter

Apple has rewritten its TrueType hinting interpreter from C to memory-safe Swift for its Fall 2025 OS releases, improving security and boosting performance by an average of 13%.

NOW LET US Related – Where Did Earth Get Its Oceans? Maybe It Made Them Itself

dev-tools

Where Did Earth Get Its Oceans? Maybe It Made Them Itself

For decades, scientists believed Earth's water was delivered by comets or asteroids. However, new research and space missions suggest our planet might have manufactured its own oceans through a mix of magma and hydrogen.

NOW LET US Related – Digital Sovereignty Becomes an Imperative as the US Reads Dutch Emails

dev-tools

Digital Sovereignty Becomes an Imperative as the US Reads Dutch Emails

The reported access of Dutch officials' emails by the U.S. House of Representatives highlights the critical difference between data residency and true digital sovereignty. It underscores why nations must secure legal and operational control over their data, moving beyond mere local storage promises.

NOW LET US Related – Removing 'um' from a recording is harder than it sounds

dev-tools

Removing 'um' from a recording is harder than it sounds

Removing filler words like 'um' and 'uh' from audio recordings is surprisingly difficult due to audio artifacts and AI limitations. The open-source tool 'erm' solves this by combining Whisper with advanced digital signal processing techniques.

NOW LET US Related – If you are asking for human attention, demonstrate human effort

dev-tools

If you are asking for human attention, demonstrate human effort

As AI-generated content floods the workplace, a new etiquette dilemma emerges. This article highlights a crucial principle for modern collaboration: if you want to request human attention, you must first demonstrate human effort.

NOW LET US Related – Raspberry Pi 5 – 16GB RAM

dev-tools

Raspberry Pi 5 – 16GB RAM

The Raspberry Pi 5 features a massive upgrade with a 2.4GHz quad-core processor, up to 16GB of RAM, and in-house silicon for vastly improved I/O performance.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.