Skip to content

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-cli
Terminal window
TEMPMAILHUSH_API_KEY=sk-your_api_key \
npm exec --yes \
github:tempmailhush/tempmailhush-cli -- \
tmh mailbox create-and-wait \
--timeout 120 --interval 5
  • 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.