Command Line Interface

$

Zoho Mail in your terminal

A fast, script-friendly CLI for Zoho Mail. JSON by default. Pipe to jq. Integrate with your workflows.

Get Started GitHub
$ zoho mail list
[
  {
    "messageId": "1771333290108014300",
    "subject": "Q1 invoice attached",
    "from": "billing@acme.com",
    "date": "1740067200000",
    "unread": true,
    "hasAttachments": true
  },
  {
    "messageId": "1771333290108014301",
    "subject": "Meeting notes",
    "from": "team@company.com",
    "date": "1740063600000",
    "unread": false,
    "hasAttachments": false
  }
]
$
v0.1.1
Features

Everything you need

A complete toolkit for managing Zoho Mail from the command line

01

JSON by default

Structured output for scripts and automation

02

Markdown tables

Human-readable format with --md flag

03

OAuth authentication

Secure browser-based login

04

Multi-account support

Switch between accounts seamlessly

05

Folder management

Create, rename, organize programmatically

06

Script-friendly

Designed for automation workflows

Example
# Filter unread emails
$ zoho mail list | jq -r '.[] | select(.unread) | .subject'
Q1 invoice attached
Meeting notes
Installation

Get started

Python 3.11+ required. Works on macOS, Linux, and Windows.

$ brew install robsannaa/tap/zoho-cli
Installed zoho-cli
Next: Configure OAuth
Commands

CLI Reference

Explore available commands and their output formats

Output
[
  {
    "messageId": "1771333290108014300",
    "subject": "Q1 invoice attached",
    "from": "billing@acme.com",
    "date": "1740067200000",
    "unread": true
  }
]
Global Flags
--account
Specify account
--md
Markdown output
--debug
Debug logs
--config
Config path
Setup

Get connected

Three steps to connect your Zoho Mail account. Region auto-detected.

01

Create OAuth client

Go to Zoho API Console and create a Mobile/Desktop Application client.

02

Save credentials

Run the config command and enter your Client ID and Secret.

03

Authenticate

Log in to Zoho and authorize the CLI.

Supported Regions

Auto-detects your Zoho data center. No configuration needed.

zoho.com zoho.eu zoho.in zoho.com.au zoho.jp zoho.ca

Tip: For CI/headless, use zoho login --no-browser