Skip to content

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.

Maho CLI is included with Maho Mail. After installing the desktop app, the maho command is available in your terminal.

| Flag | Description | |------|-------------| | --db-path <PATH> | Path to the SQLite database. Overrides auto-detection. |

| 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 |