Hostinger Mail API Command Line Interface
Hostinger Mail API Command Line Interface.
Get started:
- Sign in: hostinger-mail config set api_token (or set HOSTINGER_MAIL_API_TOKEN)
Output is a table on a terminal and JSON when piped; pick one with --format (table|json|yaml|tree) or filter it with --jq. Missing arguments and required flags are prompted for in a terminal (disable with --no-input). Commands that delete or stop things ask for confirmation (skip with --yes), and --dry-run prints the request as curl without sending it.
Documentation: https://github.com/hostinger/mail-api-cli/tree/main/docs
--config string Config file (default is $HOME/.hostinger-mail.yaml)
--dry-run[=true|false] Print the request as a curl command instead of sending it
-o, --format string Output format: table|json|yaml|tree (default: table on a terminal, json when piped)
-h, --help[=true|false] help for hostinger-mail
--jq string Filter the JSON response with a jq expression, e.g. '.data[].id'
--no-input[=true|false] Never prompt; fail when an argument, flag or confirmation is missing
--verbose[=true|false] Print the config file used and each HTTP request to stderr
- hostinger-mail account - Account commands
- hostinger-mail auth - Sign in and check which credentials are used
- hostinger-mail calendar-events - Calendar Events commands
- hostinger-mail calendars - Calendars commands
- hostinger-mail completion - Generate the autocompletion script for the specified shell
- hostinger-mail config - Read and write CLI settings
- hostinger-mail feedback - Feedback commands
- hostinger-mail folders - Folders commands
- hostinger-mail messages - Messages commands
- hostinger-mail quota - Quota commands
- hostinger-mail send - Send commands
- hostinger-mail version - Show the current version
- hostinger-mail webhooks - Webhooks commands