April 22nd, 2026
You can now access Mailtrap features directly from your terminal using the official Mailtrap CLI.Β
What you can do:
Send emails without leaving your terminal.
Use it in CI/CD pipelines: a CLI command in a GitHub Action is cleaner than a curl call with JSON parsing. The CLI handles auth, pagination, and output formatting.
Script your infrastructure, from domain setup and token rotation to contact imports in Bash/Makefile.
Run one-off tasks where writing an API script is overkill: clean a sandbox, check stats for a domain, rotate a token.Β
Work in SSH sessions, jump boxes, and containers with no GUI access.
Pull stats by domain, ESP, or category from the command line to spot issues fast.
For a quick installation guide, please check out the official Knowledge Base article.