Manage Gmail from the command line with gmcli — search with Gmail query syntax, read threads, send mail, manage drafts, and handle labels and attachments via OAuth.
---
name: gmcli
description: Gmail CLI for searching emails, reading threads, sending messages, managing drafts, and handling labels/attachments. Use for focused mailbox workflows from the shell.
---
Drives Gmail through the `gmcli` command-line tool.
## How to use
1. Install with `npm install -g @mariozechner/gmcli`.
2. First-time setup: create a Google Cloud project, enable the Gmail API, create a Desktop OAuth client, then run `gmcli accounts credentials <creds.json>` and `gmcli accounts add <email>`.
3. Search and read: `gmcli <email> search "<gmail query>"` (supports the full Gmail query syntax) and `gmcli <email> thread <threadId>` to read a whole thread.
4. Act on mail: `gmcli <email> send --to <emails> --subject <s> --body <b>`, plus `labels list` and `drafts list`; attachments download to `~/.gmcli/attachments/`.
Full skill & source: https://github.com/badlogic/pi-skills/tree/90bb51cae36515a648515b633a81c0c6efc8c74d/gmcliSign in to rate and review this skill.
No reviews yet. Be the first to review this skill.