Use when interacting with Hetzner Cloud via command line - managing servers, networks, volumes, load balancers, firewalls, DNS, or any cloud infrastructure operations with hcloud CLI
View on GitHubgaarutyunov/dev-skills
hetzner
hetzner/skills/hcloud-cli/SKILL.md
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/gaarutyunov/dev-skills/blob/main/hetzner/skills/hcloud-cli/SKILL.md -a claude-code --skill hcloud-cliInstallation paths:
.claude/skills/hcloud-cli/# Hetzner Cloud CLI (hcloud) ## Overview hcloud is the official CLI for Hetzner Cloud. Use it for quick operations, scripting, and CI/CD workflows. For complex automation or custom Go integrations, use the `hetzner:hcloud-go-sdk` skill instead. ## Quick Setup ```bash # Install brew install hcloud # or: go install github.com/hetznercloud/cli/cmd/hcloud@latest # Authenticate hcloud context create myproject # Enter your API token when prompted (from https://console.hetzner.cloud) ``` See `references/configuration.md` for multi-project and advanced setup. ## Quick Reference | Task | Command | |------|---------| | **Servers** | | | List servers | `hcloud server list` | | Create server | `hcloud server create --name web --type cpx22 --image ubuntu-24.04` | | SSH to server | `hcloud server ssh web` | | Delete server | `hcloud server delete web` | | Reboot/Reset | `hcloud server reboot web` / `hcloud server reset web` | | **Networks** | | | Create network | `hcloud network create --name private --ip-range 10.0.0.0/8` | | Attach server | `hcloud server attach-to-network web --network private` | | **Volumes** | | | Create volume | `hcloud volume create --name data --size 100 --server web` | | Attach volume | `hcloud volume attach data --server web --automount` | | **Firewalls** | | | Create firewall | `hcloud firewall create --name web-fw` | | Add rule | `hcloud firewall add-rule web-fw --direction in --protocol tcp --port 80` | | Apply to server | `hcloud firewall apply-to-resource web-fw --type server --server web` | | **Load Balancers** | | | Create LB | `hcloud load-balancer create --name lb --type lb11 --location fsn1` | | Add target | `hcloud load-balancer add-target lb --server web` | | **SSH Keys** | | | Upload key | `hcloud ssh-key create --name mykey --public-key-from-file ~/.ssh/id_rsa.pub` | | **DNS (Zones)** | | | List zones | `hcloud zone list` | | Create zone | `hcloud zone create --name example.com` | ## Command Categories See `references/commands.m