#!/bin/bash # Fetch available Hetzner Cloud locations/datacenters # Usage: ./get_locations.sh set -e # Check for hcloud CLI if ! command -v hcloud &> /dev/null; then echo "ERROR: hcloud CLI not found" echo "Install from: https://github.com/hetznercloud/cli" exit 1 fi echo "=== Hetzner Cloud Locations ===" echo "" hcloud location list --format table