home / cloud / hcloud

Hetzner Cloud CLI

Official · Hetzner Cloud
1.5k

Official Hetzner Cloud CLI for managing servers, networking, load balancers, storage, and DNS from the shell.

$brew install hcloud
Language
Go
Stars
1,539
Category
Cloud & Storage
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

hcloud is Hetzner's official CLI for provisioning and operating Hetzner Cloud resources, plus related Hetzner services like Storage Boxes and DNS zones. It covers both inventory-style inspection and day-2 changes such as server lifecycle, networking, volumes, firewalls, and load balancer operations.

What It Enables
  • Create, inspect, update, and delete servers, volumes, networks, floating IPs, firewalls, load balancers, placement groups, certificates, and SSH keys from one CLI.
  • Handle day-2 infrastructure work such as power actions, rebuilds, rescue mode, reverse DNS, backups, metrics, and network or firewall attachments.
  • Manage related Hetzner services including Storage Boxes, subaccounts, snapshots, DNS zones, and RRsets without dropping to raw API calls.
Agent Fit
  • Repeated --output json and --output yaml support across create, list, and describe commands makes inspect, change, and verify loops easy to script and parse.
  • Most resource operations are explicit non-interactive Cobra commands with stable flags, so they compose well in shell automation once auth context is already configured.
  • Bootstrap and helper paths are less uniform: context create prompts for credentials by default, and commands like server ssh hand off to another interactive program instead of staying fully machine-oriented.
Caveats
  • You need a Hetzner API token and local context before most commands are useful; unattended setup works best with --token-from-env.
  • Not every command exposes the same structured output surface, and experimental features can change within minor releases.