Hostinger API Command Line Interface
Hostinger API Command Line Interface.
Get started:
- Sign in: hostinger auth login (or: hostinger config set api_token, or set HOSTINGER_API_TOKEN)
- Try a command: hostinger agency-hosting domains list
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/api-cli/tree/main/docs
--config string Config file (default is $HOME/.hostinger.yaml)
--dry-run 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 help for hostinger
--jq string Filter the JSON response with a jq expression, e.g. '.data[].id'
--no-input Never prompt; fail when an argument, flag or confirmation is missing
--verbose Print the config file used and each HTTP request to stderr
- hostinger agency-hosting - Agency Hosting commands
- hostinger agent-readiness - Agent Readiness commands
- hostinger auth - Sign in and check which credentials are used
- hostinger billing - Billing commands
- hostinger completion - Generate the autocompletion script for the specified shell
- hostinger config - Read and write CLI settings
- hostinger dns - DNS commands
- hostinger domains - Domains commands
- hostinger ecommerce - Ecommerce commands
- hostinger horizons - Horizons commands
- hostinger hosting - Hosting commands
- hostinger mail - Mail commands
- hostinger reach - Reach commands
- hostinger version - Show the current version
- hostinger vps - VPS commands
- hostinger wordpress - WordPress commands