CLI
The TempMailHush CLI is designed for scripts, CI jobs, and agents that need to create a temporary inbox, wait for a message, and return structured output.
Detailed installation, command options, JSON output, exit codes, examples, and issues are maintained in the GitHub repository:
https://github.com/tempmailhush/tempmailhush-cliOne-shot example
Section titled “One-shot example”TEMPMAILHUSH_API_KEY=sk-your_api_key \npm exec --yes \ github:tempmailhush/tempmailhush-cli -- \ tmh mailbox create-and-wait \ --timeout 120 --interval 5When to use it
Section titled “When to use it”- AI-agent workflows that need temporary email without browser state.
- CI tests for signup, onboarding, and verification emails.
- Local scripts that need a disposable inbox and structured output.