hostinger is the command line interface for the Hostinger 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.
brew install hostinger/tap/hostingerUpgrade with brew upgrade hostinger. Shell tab-completion (bash/zsh/fish) is installed
automatically.
Download the binary for your platform from the releases page.
Create $HOME/.hostinger.yaml:
api_token: <your API token>or set the HOSTINGER_API_TOKEN environment variable. Generate a token at
hPanel → API.
hostinger <group> <subgroup> <verb> [args] [flags]
Examples:
hostinger billing catalog list
hostinger vps virtual-machines list
hostinger vps vm start 123 # vm is an alias for virtual-machines
hostinger dns records list example.com
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.