Skip to content

fcakyon/claude-codex-settings / plugins/hetzner-skills/skills/hetzner-deploy

hetzner-deploy

Verified

This skill should be used when user asks to "deploy to Hetzner", "create Hetzner server", "manage Hetzner Cloud", "hcloud CLI", or works with Hetzner Cloud infrastructure including servers, networks, firewalls, load balancers, DNS zones, and volumes.

FileKindSize
SKILL.mdskill md8.3 KB
references/all/README.mdmarkdown1.1 KB
references/all/commands.mdmarkdown1.6 KB
references/api/README.mdmarkdown1.3 KB
references/certificate/README.mdmarkdown1.7 KB
references/certificate/commands.mdmarkdown10.5 KB
references/config/README.mdmarkdown1.1 KB
references/config/commands.mdmarkdown15.7 KB
references/dns/README.mdmarkdown2.6 KB
references/dns/commands.mdmarkdown42.4 KB
references/firewall/README.mdmarkdown2.1 KB
references/firewall/commands.mdmarkdown16.7 KB
references/floating-ip/README.mdmarkdown2.2 KB
references/floating-ip/commands.mdmarkdown15.2 KB
references/getting-started/configuration.mdmarkdown1.6 KB
references/getting-started/create-a-server.mdmarkdown3.2 KB
references/getting-started/output-options.mdmarkdown4.5 KB
references/getting-started/setup.mdmarkdown7.7 KB
references/image/README.mdmarkdown1.6 KB
references/image/commands.mdmarkdown9.9 KB
references/info/README.mdmarkdown1.2 KB
references/info/commands.mdmarkdown18.0 KB
references/load-balancer/README.mdmarkdown3.5 KB
references/load-balancer/commands.mdmarkdown33.1 KB
references/network/README.mdmarkdown2.6 KB
references/network/commands.mdmarkdown20.8 KB
references/placement-group/README.mdmarkdown1.7 KB
references/placement-group/commands.mdmarkdown9.0 KB
references/primary-ip/README.mdmarkdown2.2 KB
references/primary-ip/commands.mdmarkdown16.0 KB
references/server/README.mdmarkdown4.0 KB
references/server/commands.mdmarkdown43.6 KB
references/ssh-key/README.mdmarkdown1.5 KB
references/ssh-key/commands.mdmarkdown8.8 KB
references/storage-box/README.mdmarkdown2.9 KB
references/storage-box/commands.mdmarkdown47.3 KB
references/volume/README.mdmarkdown1.9 KB
references/volume/commands.mdmarkdown14.7 KB

references/getting-started/create-a-server.md

View on GitHub
<!--
---
date: "2026-09-07"
date_changed: "2026-09-07"
title: "Creating a server"
tags: []
language: "en"
description: ""
docs_type: ["getting_started"]
product_category: ["Integrations"]
translation: ["Integrations", "CLI", "Tutorials", "Creating a server"]
scrape_type: "whole"
priority: 80
---
-->

# Creating a server

This tutorial covers the process of creating a server using the Hetzner Cloud CLI. It includes creating an SSH Key, 
uploading it, creating a Server and then connecting to it via SSH.

## Prerequisites

- A functioning installation of the [hcloud CLI](setup-hcloud-cli.md), with a valid active context.

## 1. Create an SSH Key

### 1.1 Generate an SSH Key

While an SSH key is not strictly required to create a server, it is highly recommended for secure access.
If you don't have an SSH key yet, you can generate one using the following command:

```bash
ssh-keygen -t ed25519 -f ~/.ssh/hcloud
```

Your private key will now be located at `~/.ssh/hcloud`. **Do not share your private key with anyone!**

### 1.2 Upload the SSH Key

You can upload your SSH key to Hetzner Console using the following command:

```bash
hcloud ssh-key create --name my-ssh-key --public-key-from-file ~/.ssh/hcloud.pub
```

> [!TIP]
> You can set this SSH key as the default SSH key for your context using the following command:
> ```bash
> hcloud config set default-ssh-keys my-ssh-key
> ```

## 2. Create a Server

### 2.1 Pick a Server Type

Before creating a server, you need to choose a server type. You can list all available server types using the following command:

```bash
hcloud server-type list
```

For this example we will use the `cpx22` server type.
You can view the details of this server type using the following command:

```bash
hcloud server-type describe cpx22
```

### 2.2 Pick an Image

You need to choose an image for your server. You can list all available images using the following command:

```bash
hcloud image list
```

There are many images available, including various Linux distributions and pre-configured app images.
For this example we will use the `ubuntu-26.04` image.

### 2.3 Pick a Location (Optional)

You can choose a location for your server. You can list all available locations using the following command:

```bash
hcloud location list
```

If you don't specify a location, one will be chosen for you. This is what we will do in this example.

### 2.4 Create the Server

Now you can create the server using the following command:

```bash
hcloud server create --name my-server --type cpx22 --image ubuntu-26.04 --ssh-key my-ssh-key
```

If you set the SSH key as the default SSH key for your context, you can omit the `--ssh-key` flag.
After the server was created, you will see information about the server, including its IP address.

## 3. Connect to the Server

You can connect to the server using SSH. The CLI contains a built-in utility to do this:

```bash
hcloud server ssh my-server -i ~/.ssh/hcloud
```

This command will open an SSH connection to the server using the private key you generated earlier.

## 4. Clean Up

After you are done with the server, you can delete it using the following command:

```bash
hcloud server delete my-server
```

You can also delete the SSH key using the following command:

```bash
hcloud ssh-key delete my-ssh-key
```
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 319kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall