Hetzner Cloud CLI
$ hcloud Official High RiskHetzner Cloud CLI (hcloud) is a fast single-binary Go CLI for managing Hetzner Cloud servers, volumes, networks, firewalls, and DNS with -o json (--output json), -o columns=..., named project contexts, and --quiet.
brew install hcloud hcloud delivers instant -o json responses from a single Go binary, making an MCP layer unnecessary.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Consistent -o json, -o columns=... tabular projection, and --quiet make hcloud clean and scriptable.
- Supports
-o json,-o columns=..., and--quiet
Project-scoped API tokens (HCLOUD_TOKEN) and named --context switching isolate projects cleanly, though --dry-run is absent.
- Project-scoped tokens via
hcloud contextorHCLOUD_TOKEN
Zero-dependency static Go binary installable via Homebrew, go install, or release archives.
- Static Go binary across macOS, Linux, and Windows
Concise command tree covers Hetzner Cloud compute, networking, and storage with minimal latency.
- Fast single-binary execution with JSON output
Official hetznercloud/cli repository actively maintained by Hetzner.
- Official
hetznercloud/cliunder MIT
Clear Cobra-generated --help docs, though online reference is lighter than hyperscaler CLIs.
- Built-in Cobra
--helpand README documentation
Security, Auth & Guardrails
Stores project tokens in ~/.config/hcloud/cli.toml, or reads HCLOUD_TOKEN from the environment.
CLI is free (MIT); provisioning servers and volumes incurs Hetzner Cloud billing.
# hcloud Agent Rules - Check `hcloud context active` or pass `--context` (or `HCLOUD_TOKEN`) explicitly. - Always pass `-o json` on `list` and `describe` commands. - Require user approval before running `hcloud server delete` or `hcloud volume delete`.
Agent-Ready Command Recipes
Safe Read-Only Queries
hcloud context active
Prints the currently selected Hetzner Cloud project context before issuing commands.
hcloud server list -o json
Outputs all servers, IPs, server types, and statuses as JSON.
Strengths for Agents
- + Tiny, fast static Go binary with
-o jsonsupport. - + Project-scoped tokens and
--contextprevent cross-project mistakes. - + Clean Cobra CLI structure with predictable subcommands.
Caveats & Pitfalls
- ! No
--dry-runflag oncreateordeletecommands. - ! Destructive
deletecommands execute immediately without a--forcegate.