What problem does it solve?
Gmail users often need to manage emails without switching to a web browser. gmcli provides a command-line interface to search, read, compose, and organize Gmail messages, making inbox management faster and scriptable.
Core Features & Use Cases
- Search emails: Quickly locate messages using Gmail search syntax directly from the terminal.
- Read threads: Open and review entire conversations to capture context.
- Send messages: Compose and send emails from scripts or interactive sessions.
- Manage drafts and labels: Create and edit drafts; apply labels and attachments to organize inboxes.
- Automation scenarios: Generate daily digests, respond to triggers, or batch-process messages in batches.
Quick Start
Install gmcli with:
npm install -g @mariozechner/gmcli
Setup Google Cloud OAuth as described in the Setup steps:
- Run: gmcli accounts list
- If no accounts exist, run: gmcli accounts credentials /path/to/credentials.json
- Add an account: gmcli accounts add [email protected]
Example usage:
gmcli [email protected] search "from:boss"