gmcli

Automate Gmail operations from the command line using the Gmail API.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/larsboes/pai-marketplace --skill gmcli-larsboes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmcli
Source: https://github.com/larsboes/pai-marketplace/tree/main/marketplace/plugins/integrations/skills/gmcli
Command: npx skills add https://github.com/larsboes/pai-marketplace --skill gmcli-larsboes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gmail management from the command line to save time and streamline email workflows.

Core Features & Use Cases

  • Search emails with Gmail query syntax from the terminal
  • Read entire threads and manage replies
  • Send messages, apply labels, and view drafts directly from the CLI
  • Use case: triage a crowded inbox by quickly filtering messages and replying from scripts

Quick Start

Invoke gmcli with your account to perform a search, read threads, or send messages from the command line.

Frequently Asked Questions about gmcli

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

FAQPage Schema
How do I manage Gmail from the command line?

You can manage Gmail from the command line by invoking a CLI interface that directly calls Gmail API commands to search, read threads, send messages, and manage labels.

Can I search and triage Gmail threads using terminal scripts?

Yes, you can triage a crowded inbox by using Gmail query syntax in terminal scripts to quickly filter messages, read entire threads, and manage replies directly.

What is the best way to automate sending emails and applying labels via a CLI?

Automating email workflows is best achieved by using a command line interface that sends messages, applies labels, and views drafts by executing Gmail API commands automatically.

Do I need specific Gmail API permissions to send messages and manage drafts from the CLI?

You need to invoke the CLI with your account to grant the necessary Gmail API permissions, enabling the tool to execute commands for sending messages and viewing drafts.

How does command line email automation compare to using the standard Gmail web interface?

Command line email automation streamlines workflow management by allowing batch actions like searching and sending messages via scripts, saving time compared to manual web interface interactions.