Hetzner Cloud: Creating and Managing Servers via API

Cloud & DevOps · 19.04.2026
Hetzner Cloud: Creating and Managing Servers via API

Hetzner Cloud: Best European Cloud Provider

Hetzner Cloud offers servers in Germany, Finland, and the US with outstanding price/performance: CX22 (2 vCPU / 4 GB) at €4.35/month.

Install hcloud CLI

wget https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz
tar -xzf hcloud-linux-amd64.tar.gz && mv hcloud /usr/local/bin/
hcloud context create my-project

Create a Server

hcloud server create \
  --name web-01 \
  --type cx22 \
  --image ubuntu-24.04 \
  --location nbg1 \
  --ssh-key my-key
Object Storage: Hetzner offers S3-compatible storage from €3.49/month per 1 TB.
← Back to Knowledge Base Ask Support