gmcli

Search Gmail messages from the command line using Gmail query syntax.

30|5|Updated Aug 9, 2012
One-click install
npx skills add https://github.com/juanibiapina/dotfiles --skill gmcli-juanibiapina
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmcli
Source: https://github.com/juanibiapina/dotfiles/tree/main/dotfiles/agents/.agents/skills/gmcli
Command: npx skills add https://github.com/juanibiapina/dotfiles --skill gmcli-juanibiapina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gmail management from the command line speeds up searching, reading, composing, and organizing messages.

Core Features & Use Cases

  • Search emails using Gmail query syntax from the terminal.
  • Read threads and manage labels and drafts without leaving the shell.
  • Send messages and organize conversations programmatically.

Quick Start

Run gmcli <email> search "<query>"

Frequently Asked Questions about gmcli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Gmail messages from the command line?

You can search Gmail messages from the command line by running a command like `gmcli <email> search "<query>"`, which uses Gmail query syntax to filter and retrieve emails directly in the terminal.

What do I need to manage Gmail from the terminal?

To manage Gmail from the terminal, you need OAuth authentication and Gmail API access configured for your account, allowing you to filter emails, read threads, compose messages, and manage labels programmatically.

Can I send messages and manage drafts without leaving the shell?

Yes, you can send messages and manage drafts without leaving the shell. The command line interface supports commands for composing messages, organizing conversations, and storing drafts across one or more Gmail accounts.

Does the Gmail CLI tool support multiple Gmail accounts?

Yes, the Gmail CLI tool supports multiple Gmail accounts. You can manage labels, read threads, and compose messages across one or more accounts by specifying the target email address in your terminal commands.

What is the best way to organize Gmail labels programmatically?

The best way to organize Gmail labels programmatically is using a command line tool that provides a labels command, allowing you to manage and sort conversations directly through the Gmail API without a graphical interface.