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.

FlagDescription
--db-path <PATH>Path to the SQLite database. Overrides auto-detection.
CommandDescription
accountsList all email accounts
foldersList folders for an account
listList emails in a folder
getGet full email detail
searchSearch emails via full-text search
threadList emails in a thread