mail-debugger-cli
v0.3.2
Published
Interactive terminal client for Mail Debugger. Browse, filter, and manage caught emails from the command line via TUI or direct commands.
Maintainers
Readme
mail-debugger-cli
Interactive terminal client for Mail Debugger. Browse, filter, and manage caught emails from the command line -- either through the full-screen TUI or via direct commands for scripting.
Usage
pnpx mail-debugger-cliInteractive TUI (default)
mail-debugger-cli # Connect to localhost:3000
mail-debugger-cli --api-url http://host:4000 # Custom serverFeatures:
- Email list with table view (ID, From, Subject, Date, Attachments)
- Email detail view with headers, body, and attachments
- Filter bar (toggle with
f) for From/To/Subject filtering - Auto-refresh every 3 seconds
- Keyboard shortcuts:
qquit,ffilter,rrefresh,Enterview,Escapeback,ddelete,Ddelete all
Direct Commands
mail-debugger-cli list # List all emails
mail-debugger-cli list --from [email protected] --subject test # Filtered list
mail-debugger-cli show 5 # Show email details
mail-debugger-cli delete 5 # Delete one email
mail-debugger-cli delete-all # Delete all emails
mail-debugger-cli health # Server statusGlobal Options
| Option | Default | Description |
| ----------------- | ----------------------- | ---------------------------------- |
| --api-url <url> | http://localhost:3000 | Server API URL |
| --json | false | Output as JSON (command mode only) |
Filter Options (for list command)
| Option | Description |
| -------------------- | ------------------------------------ |
| --from <addr> | Filter by sender (partial match) |
| --to <addr> | Filter by recipient (partial match) |
| --subject <text> | Filter by subject (partial match) |
| --since <datetime> | Emails received after this datetime |
| --until <datetime> | Emails received before this datetime |
Prerequisites
A running mail-debugger or mail-debugger-api server. The CLI connects to its REST API (default http://localhost:3000).
License
MIT
