CLI Reference
Maho Mail includes a CLI that queries your local email database. Use it for scripting, automation, and piping email data to other tools.
Examples use placeholder IDs. Use actual IDs from your Maho Mail database.
Installation
Section titled “Installation”Maho CLI is included with Maho Mail. After installing the desktop app, the maho command is available in your terminal.
Global Flags
Section titled “Global Flags”| Flag | Description |
|---|---|
--db-path <PATH> | Path to the SQLite database. Overrides auto-detection. |
Commands
Section titled “Commands”| Command | Description |
|---|---|
accounts | List all email accounts |
folders | List folders for an account |
list | List emails in a folder |
get | Get full email detail |
search | Search emails via full-text search |
thread | List emails in a thread |