Hostinger Mail API CLI
hostinger-mail is the command line interface for the Hostinger Mail API.
This repository is generated. Do not open pull requests here — every file
is overwritten by the next generation run. The CLI is generated from the
OpenAPI specification by
hostinger/public-api-generator
(see the cli/ directory there). Report issues or contribute in that repository.
Installation
Homebrew (macOS & Linux)
brew install hostinger/tap/hostinger-mail
Upgrade with brew upgrade hostinger-mail. Shell tab-completion (bash/zsh/fish) is installed
automatically.
Binary download
Download the binary for your platform from the
releases page.
Configuration
Create $HOME/.hostinger-mail.yaml:
api_token: <your API token>
or set the HOSTINGER_MAIL_API_TOKEN environment variable. Generate a token at
hPanel → API.
Usage
hostinger-mail <group> <verb> [args] [flags]
Examples:
hostinger-mail account current
hostinger-mail folders list <mailbox-resource-id>
hostinger-mail messages list <mailbox-resource-id> <folder>
hostinger-mail quota get <mailbox-resource-id>
Output format defaults to a table; use --format json|table|tree to change it.
Command documentation lives in docs/, and manifest.json maps every
API operation to its command. Shell autocompletion: see
AUTOCOMPLETE.md.