This is the multi-page printable view of this section.
CLI
The pigeon binary is both the server and a small mail client.
Running pigeon without a subcommand is the same as pigeon serve.
digest
Prints a mailbox summary from the local cache — no server required, it opens the data directory directly.
| Flag | Default | Description |
|---|---|---|
--account |
the only account | Account ID, email or name |
--mailbox |
INBOX |
Mailbox path or display name |
--limit |
10 |
Number of messages to show |
--unread |
— | Only unread messages |
--sync |
— | Sync before printing; falls back to cached mail if sync fails |
--json |
— | Emit JSON instead of a table |
--data |
~/.pigeon |
Data directory |
Sample output:
● marks unread and ★ marks starred messages. With --json the output is:
backup
pigeon backup writes a gzip-compressed tar archive containing a consistent
pigeon.db snapshot, the secret.key used to decrypt account passwords, and a
manifest.json. See Backup & Restore for flags, restore steps
and security notes.
restore
pigeon restore -f FILE verifies a backup archive and installs its database
and secret key into the data directory. See Backup & Restore
for details and restrictions.
token
The same operations are available over the REST API; see Tokens & Auth.
Environment variables
| Variable | Default | Description |
|---|---|---|
PIGEON_ADDR |
127.0.0.1:8787 |
Listen address for serve |
PIGEON_DATA |
OS config dir + /pigeon |
Data directory |
PIGEON_DEBUG |
— | Any non-empty value enables debug logging |
Flags take precedence over environment variables, which take precedence over defaults.
serve, mcp and digest --sync also write their logs to
<data-dir>/logs/pigeon-YYYY-MM-DD.log — one file per local date, alongside
stderr output.
To run a second instance alongside the default one, override the address (and optionally the data directory):