hetzner-deploy
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.
Install
npx skills add https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/hetzner-skills/skills/hetzner-deploy
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fcakyon-claude-codex-settings@llmmart
git clone https://github.com/fcakyon/claude-codex-settings.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fcakyon/claude-codex-settings collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Hetzner Cloud CLI Skill
Skill for provisioning and managing infrastructure on Hetzner Cloud using the hcloud CLI. Use the decision trees below to find the right command group, then load detailed references.
Your knowledge of Hetzner Cloud pricing, server types, locations, and API behavior may be outdated. Prefer retrieval over pre-training when citing specific numbers, available types, or configuration options. The reference files alongside this skill are starting points extracted from the official CLI docs.
Authentication
The CLI authenticates via API token. Set the HCLOUD_TOKEN environment variable or create a named context:
# Stateless (CI, scripting, agent use)
export HCLOUD_TOKEN="your-api-token"
# Named context (interactive use)
hcloud context create my-project
Generate tokens at https://console.hetzner.cloud under your project's Security > API Tokens.
Installation
# macOS / Linux (Homebrew)
brew install hcloud
# Linux (binary)
curl -sSLO https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz
sudo tar -C /usr/local/bin --no-same-owner -xzf hcloud-linux-amd64.tar.gz hcloud
# Docker
docker run --rm -e HCLOUD_TOKEN="$HCLOUD_TOKEN" hetznercloud/cli:latest <command>
Quick Decision Trees
"I need compute"
Need a server?
├─ Create a new server → hcloud server create --name <n> --type <t> --image <img>
├─ With cloud-init user data → add --user-data-from-file <path>
├─ With firewall + network → add --firewall <fw> --network <net>
├─ List available types → hcloud server-type list
├─ List available images → hcloud image list
├─ SSH into server → hcloud server ssh <name>
├─ Create snapshot → hcloud server create-image --type snapshot <name>
├─ Rescue mode → hcloud server enable-rescue <name>
└─ Delete server → hcloud server delete <name>
"I need networking"
Need networking?
├─ Private network (VPC) → hcloud network create --name <n> --ip-range <cidr>
│ ├─ Add subnet → hcloud network add-subnet --network <n> --type cloud --network-zone <z> --ip-range <cidr>
│ └─ Attach server → hcloud server attach-to-network --network <n> --server <s>
├─ Firewall → hcloud firewall create --name <n> --rules-file <json>
│ ├─ Apply to server → hcloud firewall apply-to-resource --firewall <n> --type server --server <s>
│ └─ Replace rules → hcloud firewall replace-rules --rules-file <json> <name>
├─ Load balancer → hcloud load-balancer create --name <n> --type <t> --location <loc>
│ ├─ Add target → hcloud load-balancer add-target --server <s> <lb>
│ └─ Add service → hcloud load-balancer add-service --protocol <p> --listen-port <port> <lb>
├─ Floating IP → hcloud floating-ip create --type ipv4 --home-location <loc>
│ └─ Assign → hcloud floating-ip assign <ip> --server <s>
└─ Primary IP → hcloud primary-ip create --name <n> --type ipv4 --datacenter <dc>
"I need storage"
Need storage?
├─ Block volume → hcloud volume create --name <n> --size <gb> --server <s> --automount --format ext4
│ ├─ Resize → hcloud volume resize --size <gb> <name>
│ └─ Detach → hcloud volume detach <name>
└─ Storage Box (managed NFS/CIFS/SCP) → hcloud storage-box create --name <n> --type <t> --location <loc>
├─ Subaccounts → hcloud storage-box subaccount create <box>
└─ Snapshots → hcloud storage-box snapshot create <box>
"I need DNS"
Need DNS?
├─ Create zone → hcloud zone create --name <domain>
├─ Add records → hcloud zone add-records --zone <z> --type A --name <n> --value <ip>
├─ Set full record set → hcloud zone set-records --zone <z> --type A --name <n> --value <ip1> --value <ip2>
├─ Import zone file → hcloud zone import-zonefile --zone <z> <file>
├─ Export zone file → hcloud zone export-zonefile <zone>
└─ Manage individual RRSets → hcloud zone rrset list <zone>
"I need info"
Need reference data?
├─ Server types + pricing → hcloud server-type list / describe <type>
├─ Locations → hcloud location list / describe <loc>
├─ Datacenters → hcloud datacenter list / describe <dc>
├─ Available images → hcloud image list
├─ ISO images → hcloud iso list
├─ Load balancer types → hcloud load-balancer-type list
└─ Storage box types → hcloud storage-box-type list
"I need to configure the CLI"
Need CLI config?
├─ Create context → hcloud context create <name>
├─ Switch context → hcloud context use <name>
├─ Set default SSH key → hcloud config set default-ssh-keys <key>
├─ View config → hcloud config list
└─ Shell completion → hcloud completion bash/zsh/fish
Common Workflows
Quick server deploy
# Upload SSH key, create server, connect
hcloud ssh-key create --name deploy-key --public-key-from-file ~/.ssh/id_ed25519.pub
hcloud server create --name web-1 --type cpx21 --image ubuntu-24.04 --ssh-key deploy-key --location fsn1
hcloud server ssh web-1
Full stack with network + firewall
# Network
hcloud network create --name prod-net --ip-range 10.0.0.0/16
hcloud network add-subnet --network prod-net --type cloud --network-zone eu-central --ip-range 10.0.1.0/24
# Firewall (allow SSH + HTTP/S)
cat > rules.json << 'EOF'
[
{"direction":"in","protocol":"tcp","port":"22","source_ips":["0.0.0.0/0","::/0"]},
{"direction":"in","protocol":"tcp","port":"80","source_ips":["0.0.0.0/0","::/0"]},
{"direction":"in","protocol":"tcp","port":"443","source_ips":["0.0.0.0/0","::/0"]}
]
EOF
hcloud firewall create --name web-fw --rules-file rules.json
# Server with network + firewall
hcloud server create --name app-1 --type cpx21 --image ubuntu-24.04 \
--ssh-key deploy-key --network prod-net --firewall web-fw --location fsn1
# Load balancer
hcloud load-balancer create --name web-lb --type lb11 --location fsn1
hcloud load-balancer attach-to-network --network prod-net web-lb
hcloud load-balancer add-target --server app-1 web-lb
hcloud load-balancer add-service --protocol tcp --listen-port 80 --destination-port 80 web-lb
Output Formats
All describe, list, and create commands support structured output for scripting and agent use:
hcloud server list --output json # JSON array
hcloud server describe my-srv --output yaml # YAML
hcloud server describe my-srv --output format='{{.ServerType.Cores}}' # Go template
hcloud server list --output columns=id,name,status # Custom table columns
Resource Index
Compute
| Resource | Reference |
|---|---|
| Server | references/server/ |
| Server Types | references/info/ |
Networking
| Resource | Reference |
|---|---|
| Network (VPC) | references/network/ |
| Firewall | references/firewall/ |
| Load Balancer | references/load-balancer/ |
| Floating IP | references/floating-ip/ |
| Primary IP | references/primary-ip/ |
Storage
| Resource | Reference |
|---|---|
| Volume | references/volume/ |
| Storage Box | references/storage-box/ |
DNS
| Resource | Reference |
|---|---|
| Zone & Records | references/dns/ |
Security & Access
| Resource | Reference |
|---|---|
| SSH Key | references/ssh-key/ |
| Certificate | references/certificate/ |
| Image | references/image/ |
| Placement Group | references/placement-group/ |
Reference Data
| Resource | Reference |
|---|---|
| Server Types, LB Types, Storage Box Types, Datacenters, Locations, ISOs | references/info/ |
CLI Configuration
| Resource | Reference |
|---|---|
| Config, Context, Completion | references/config/ |
| All Resources | references/all/ |
Getting Started
| Resource | Reference |
|---|---|
| Setup, Server Tutorial, Output Options, Configuration | references/getting-started/ |
Files (claude-codex-settings)
-
references
-
all
-
commands.md 1.6 KB
## hcloud all list List all resources in the project ### Synopsis List all resources in the project. This does not include static/public resources like Locations, public ISOs, etc. Listed resources are: - Servers - Images - Placement Groups - Primary IPs - ISOs - Volumes - Load Balancer - Floating IPs - Networks - Firewalls - Certificates - SSH Keys - Storage Boxes - Zones ``` hcloud all list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: json|yaml --paid Only list resources that cost money (true, false) -l, --selector string Selector to filter by labels ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud all](hcloud_all.md) - Commands that apply to all resources -
README.md 1.1 KB
## hcloud all Commands that apply to all resources ### Options ``` -h, --help help for all ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud all list](hcloud_all_list.md) - List all resources in the project
-
-
certificate
-
commands.md 10.5 KB
## hcloud certificate add-label Add a label to a Certificate ``` hcloud certificate add-label [--overwrite] <certificate> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate create Create or upload a Certificate ``` hcloud certificate create [options] --name <name> (--type managed --domain <domain> | --type uploaded --cert-file <file> --key-file <file>) ``` ### Options ``` --cert-file string File containing the PEM encoded certificate (required if type is uploaded) --domain strings One or more domains the Certificate is valid for. -h, --help help for create --key-file string File containing the PEM encoded private key for the certificate (required if type is uploaded) --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Certificate name (required) -o, --output stringArray output options: json|yaml -t, --type string Type of Certificate to create. Valid choices: uploaded, managed (default "uploaded") ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate delete Delete a Certificate ``` hcloud certificate delete <certificate>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate describe Describe a Certificate ``` hcloud certificate describe [options] <certificate> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate list List Certificates ### Synopsis Displays a list of Certificates. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - domain_names - fingerprint - id - issuance_status - labels - name - not_valid_after - not_valid_before - renewal_status - type ``` hcloud certificate list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate remove-label Remove a label from a Certificate ``` hcloud certificate remove-label <certificate> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate retry Retry a managed Certificate's issuance ``` hcloud certificate retry <certificate> ``` ### Options ``` -h, --help help for retry ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates --- ## hcloud certificate update Update a Certificate ``` hcloud certificate update [options] <certificate> ``` ### Options ``` -h, --help help for update --name string Certificate Name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud certificate](hcloud_certificate.md) - Manage Certificates -
README.md 1.7 KB
## hcloud certificate Manage Certificates ### Options ``` -h, --help help for certificate ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud certificate add-label](hcloud_certificate_add-label.md) - Add a label to a Certificate * [hcloud certificate create](hcloud_certificate_create.md) - Create or upload a Certificate * [hcloud certificate delete](hcloud_certificate_delete.md) - Delete a Certificate * [hcloud certificate describe](hcloud_certificate_describe.md) - Describe a Certificate * [hcloud certificate list](hcloud_certificate_list.md) - List Certificates * [hcloud certificate remove-label](hcloud_certificate_remove-label.md) - Remove a label from a Certificate * [hcloud certificate retry](hcloud_certificate_retry.md) - Retry a managed Certificate's issuance * [hcloud certificate update](hcloud_certificate_update.md) - Update a Certificate
-
-
config
-
commands.md 15.7 KB
## hcloud config add Add values to a list ### Synopsis Add values to a list. For a list of all available configuration options, run 'hcloud help config'. ``` hcloud config add <key> <value>... ``` ### Options ``` --global Set the value globally (for all contexts) (true, false) -h, --help help for add ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud config get Get a configuration value ### Synopsis Get a configuration value. For a list of all available configuration options, run 'hcloud help config'. ``` hcloud config get <key> ``` ### Options ``` --allow-sensitive Allow showing sensitive values (true, false) --global Get the value globally (true, false) -h, --help help for get ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud config list List configuration values ``` hcloud config list ``` ### Options ``` -a, --all Also show default values (true, false) --allow-sensitive Allow showing sensitive values (true, false) -g, --global Only show global values (true, false) -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud config remove Remove values from a list ### Synopsis Remove values from a list. For a list of all available configuration options, run 'hcloud help config'. ``` hcloud config remove <key> <value>... ``` ### Options ``` --global Remove the value(s) globally (for all contexts) (true, false) -h, --help help for remove ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud config set Set a configuration value ### Synopsis Set a configuration value. For a list of all available configuration options, run 'hcloud help config'. ``` hcloud config set <key> <value>... ``` ### Options ``` --global Set the value globally (for all contexts) (true, false) -h, --help help for set ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud config unset Unset a configuration value ### Synopsis Unset a configuration value. For a list of all available configuration options, run 'hcloud help config'. ``` hcloud config unset <key> ``` ### Options ``` --global Unset the value globally (for all contexts) (true, false) -h, --help help for unset ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud config](hcloud_config.md) - Manage configuration --- ## hcloud context active Show active context ``` hcloud context active ``` ### Options ``` -h, --help help for active ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context create Create a new context ``` hcloud context create [--token-from-env] <name> ``` ### Options ``` -h, --help help for create --token-from-env If true, the HCLOUD_TOKEN from the environment will be used without asking ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context delete Delete a context ``` hcloud context delete <context> ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context list List contexts ### Synopsis Displays a list of contexts. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=active,name (see available columns below). Columns: - active - name ``` hcloud context list [options] ``` ### Options ``` --allow-sensitive Allow showing sensitive values in JSON/YAML output (true, false) -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context rename Rename a context ``` hcloud context rename <context> <name> ``` ### Options ``` -h, --help help for rename ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context unset Unset used context ``` hcloud context unset ``` ### Options ``` -h, --help help for unset ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts --- ## hcloud context use Use a context ``` hcloud context use <context> ``` ### Options ``` -h, --help help for use ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud context](hcloud_context.md) - Manage contexts -
README.md 1.1 KB
## hcloud version Print version information ``` hcloud version ``` ### Options ``` -h, --help help for version --long Print more version information (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI
-
-
dns
-
commands.md 42.4 KB
## hcloud zone add-label Add a label to a Zone ``` hcloud zone add-label [--overwrite] <zone> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone add-records Add records to a Zone RRSet ### Synopsis Add records to a Zone RRSet. If the Zone RRSet doesn't exist, it will automatically be created. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone add-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for add-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) --ttl int Time To Live (TTL) of the Zone RRSet ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone change-primary-nameservers Changes the primary nameservers of a secondary Zone ### Synopsis Changes the primary nameservers of a secondary Zone. Input file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-actions-change-a-zones-primary-nameservers Example file content: [ { "address": "203.0.113.10" }, { "address": "203.0.113.11", "port": 5353 }, { "address": "203.0.113.12", "tsig_algorithm": "hmac-sha256", "tsig_key": "example-key" } ] ``` hcloud zone change-primary-nameservers --primary-nameservers-file <file> <zone> ``` ### Options ``` -h, --help help for change-primary-nameservers --primary-nameservers-file string JSON file containing the new primary nameservers. (use - to read from stdin) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone change-ttl Changes the default Time To Live (TTL) of a Zone ``` hcloud zone change-ttl --ttl <ttl> <zone> ``` ### Options ``` -h, --help help for change-ttl --ttl int Default Time To Live (TTL) of the Zone (required) (default 3600) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone create Create a Zone ``` hcloud zone create [options] --name <name> [--mode secondary --primary-nameservers <file>] ``` ### Options ``` --enable-protection strings Enable protection (delete) (default: none) -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --mode string Mode of the Zone (primary, secondary) (default "primary") --name string Zone name (required) -o, --output stringArray output options: json|yaml --primary-nameservers-file string JSON file containing the new primary nameservers. (See 'hcloud zone change-primary-nameservers -h' for help) --ttl int Default Time To Live (TTL) of the Zone --zonefile string Zone file in BIND (RFC 1034/1035) format (use - to read from stdin) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone delete Delete a Zone ``` hcloud zone delete <zone>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone describe Describe a Zone ``` hcloud zone describe [options] <zone> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone disable-protection Disable resource protection for a Zone ``` hcloud zone disable-protection <zone> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone enable-protection Enable resource protection for a Zone ``` hcloud zone enable-protection <zone> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone export-zonefile Returns a generated Zone file in BIND (RFC 1034/1035) format ``` hcloud zone export-zonefile [options] <zone> ``` ### Options ``` -h, --help help for export-zonefile -o, --output stringArray output options: json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone import-zonefile Imports a zone file, replacing all Zone RRSets ``` hcloud zone import-zonefile --zonefile <file> <zone> ``` ### Options ``` -h, --help help for import-zonefile -o, --output stringArray output options: json|yaml --zonefile string Zone file in BIND (RFC 1034/1035) format (use - to read from stdin) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone list List Zones ### Synopsis Displays a list of Zones. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,authoritative_nameservers (see available columns below). Columns: - age - authoritative_nameservers - created - id - labels - mode - name - name_idna - primary_nameservers - protection - record_count - registrar - status - ttl ``` hcloud zone list [options] ``` ### Options ``` -h, --help help for list --mode string Only Zones with this mode are displayed -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone remove-label Remove a label from a Zone ``` hcloud zone remove-label <zone> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone remove-records Remove records from a Zone RRSet. ### Synopsis Remove records from a Zone RRSet. If the Zone RRSet doesn't contain any records, it will automatically be deleted. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone remove-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for remove-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) --- ## hcloud zone rrset Manage Zone RRSets (records) ### Synopsis For more details, see the documentation for Zones https://docs.hetzner.cloud/reference/cloud#zones or Zone RRSets https://docs.hetzner.cloud/reference/cloud#zone-rrsets. TXT records format must consist of one or many quoted strings of 255 characters. If the user provider TXT records are not quoted, they will be formatted for you. ### Options ``` -h, --help help for rrset ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) * [hcloud zone rrset add-label](hcloud_zone_rrset_add-label.md) - Add a label to a Zone RRSet * [hcloud zone rrset add-records](hcloud_zone_rrset_add-records.md) - Add records to a Zone RRSet * [hcloud zone rrset change-ttl](hcloud_zone_rrset_change-ttl.md) - Changes the Time To Live (TTL) of a Zone RRSet * [hcloud zone rrset create](hcloud_zone_rrset_create.md) - Create a Zone RRSet * [hcloud zone rrset delete](hcloud_zone_rrset_delete.md) - Delete a Zone RRSet * [hcloud zone rrset describe](hcloud_zone_rrset_describe.md) - Describe a Zone RRSet * [hcloud zone rrset disable-protection](hcloud_zone_rrset_disable-protection.md) - Disable resource protection for a Zone RRSet * [hcloud zone rrset enable-protection](hcloud_zone_rrset_enable-protection.md) - Enable resource protection for a Zone RRSet * [hcloud zone rrset list](hcloud_zone_rrset_list.md) - List Zone RRSets * [hcloud zone rrset remove-label](hcloud_zone_rrset_remove-label.md) - Remove a label from a Zone RRSet * [hcloud zone rrset remove-records](hcloud_zone_rrset_remove-records.md) - Remove records from a Zone RRSet. * [hcloud zone rrset set-records](hcloud_zone_rrset_set-records.md) - Set the records of a Zone RRSet --- ## hcloud zone rrset add-label Add a label to a Zone RRSet ``` hcloud zone rrset add-label [--overwrite] <zone> <name> <type> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset add-records Add records to a Zone RRSet ### Synopsis Add records to a Zone RRSet. If the Zone RRSet doesn't exist, it will automatically be created. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone rrset add-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for add-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) --ttl int Time To Live (TTL) of the Zone RRSet ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset change-ttl Changes the Time To Live (TTL) of a Zone RRSet ``` hcloud zone rrset change-ttl (--ttl <ttl> | --unset) <zone> <name> <type> ``` ### Options ``` -h, --help help for change-ttl --ttl int Time To Live (TTL) of the Zone RRSet (required) --unset Unset the Time To Live of Zone RRSet (use the Zone default TTL instead) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset create Create a Zone RRSet ### Synopsis Create a Zone RRSet. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone rrset create [options] --name <name> --type <A|AAAA|CAA|CNAME|DS|HINFO|HTTPS|MX|NS|PTR|RP|SOA|SRV|SVCB|TLSA|TXT> (--record <record>... | --records-file <file>) <zone> ``` ### Options ``` -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Name of the Zone RRSet (required) -o, --output stringArray output options: json|yaml --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) --ttl int Time To Live (TTL) of the RRSet --type string Type of the Zone RRSet (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset delete Delete a Zone RRSet ``` hcloud zone rrset delete <zone> <name> <type> ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset describe Describe a Zone RRSet ``` hcloud zone rrset describe [options] <zone> <name> <type> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset disable-protection Disable resource protection for a Zone RRSet ``` hcloud zone rrset disable-protection <zone> <name> <type> change ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset enable-protection Enable resource protection for a Zone RRSet ``` hcloud zone rrset enable-protection <zone> <name> <type> change ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset list List Zone RRSets ### Synopsis Displays a list of Zone RRSets. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=id,labels (see available columns below). Columns: - id - labels - name - protection - records - ttl - type ``` hcloud zone rrset list [options] <zone> ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result --type strings Only Zone RRSets with one of these types are displayed ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset remove-label Remove a label from a Zone RRSet ``` hcloud zone rrset remove-label <zone> <name> <type> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset remove-records Remove records from a Zone RRSet. ### Synopsis Remove records from a Zone RRSet. If the Zone RRSet doesn't contain any records, it will automatically be deleted. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone rrset remove-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for remove-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone rrset set-records Set the records of a Zone RRSet ### Synopsis Set the records of a Zone RRSet. - If the Zone RRSet doesn't exist, it will be created. - If the Zone RRSet already exists, its records will be replaced. - If the provided records are empty, the Zone RRSet will be deleted. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone rrset set-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for set-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) --- ## hcloud zone set-records Set the records of a Zone RRSet ### Synopsis Set the records of a Zone RRSet. - If the Zone RRSet doesn't exist, it will be created. - If the Zone RRSet already exists, its records will be replaced. - If the provided records are empty, the Zone RRSet will be deleted. The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset Example file content: [ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ] ``` hcloud zone set-records (--record <value>... | --records-file <file>) <zone> <name> <type> ``` ### Options ``` -h, --help help for set-records --record stringArray List of records (can be specified multiple times, conflicts with --records-file) --records-file string JSON file containing the records (conflicts with --record) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud zone](hcloud_zone.md) - Manage DNS Zones and Zone RRSets (records) -
README.md 2.6 KB
## hcloud zone Manage DNS Zones and Zone RRSets (records) ### Synopsis For more details, see the documentation for Zones https://docs.hetzner.cloud/reference/cloud#zones or Zone RRSets https://docs.hetzner.cloud/reference/cloud#zone-rrsets. ### Options ``` -h, --help help for zone ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud zone add-label](hcloud_zone_add-label.md) - Add a label to a Zone * [hcloud zone add-records](hcloud_zone_add-records.md) - Add records to a Zone RRSet * [hcloud zone change-primary-nameservers](hcloud_zone_change-primary-nameservers.md) - Changes the primary nameservers of a secondary Zone * [hcloud zone change-ttl](hcloud_zone_change-ttl.md) - Changes the default Time To Live (TTL) of a Zone * [hcloud zone create](hcloud_zone_create.md) - Create a Zone * [hcloud zone delete](hcloud_zone_delete.md) - Delete a Zone * [hcloud zone describe](hcloud_zone_describe.md) - Describe a Zone * [hcloud zone disable-protection](hcloud_zone_disable-protection.md) - Disable resource protection for a Zone * [hcloud zone enable-protection](hcloud_zone_enable-protection.md) - Enable resource protection for a Zone * [hcloud zone export-zonefile](hcloud_zone_export-zonefile.md) - Returns a generated Zone file in BIND (RFC 1034/1035) format * [hcloud zone import-zonefile](hcloud_zone_import-zonefile.md) - Imports a zone file, replacing all Zone RRSets * [hcloud zone list](hcloud_zone_list.md) - List Zones * [hcloud zone remove-label](hcloud_zone_remove-label.md) - Remove a label from a Zone * [hcloud zone remove-records](hcloud_zone_remove-records.md) - Remove records from a Zone RRSet. * [hcloud zone rrset](hcloud_zone_rrset.md) - Manage Zone RRSets (records) * [hcloud zone set-records](hcloud_zone_set-records.md) - Set the records of a Zone RRSet
-
-
firewall
-
commands.md 16.7 KB
## hcloud firewall add-label Add a label to a Firewall ``` hcloud firewall add-label [--overwrite] <firewall> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall add-rule Add a single rule to a firewall ``` hcloud firewall add-rule [options] (--direction in --source-ips <ips> | --direction out --destination-ips <ips>) (--protocol <tcp|udp> --port <port> | --protocol <icmp|esp|gre>) <firewall> ``` ### Options ``` --description string Description of the Firewall rule --destination-ips strings Destination IPs (CIDR Notation) (required when direction is out) --direction string Direction (in, out) (required) -h, --help help for add-rule --port string Port to which traffic will be allowed, only applicable for protocols TCP and UDP, you can specify port ranges, sample: 80-85 --protocol string Protocol (icmp, esp, gre, udp or tcp) (required) --source-ips strings Source IPs (CIDR Notation) (required when direction is in) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall apply-to-resource Applies a Firewall to a single resource ``` hcloud firewall apply-to-resource (--type server --server <server> | --type label_selector --label-selector <label-selector>) <firewall> ``` ### Options ``` -h, --help help for apply-to-resource -l, --label-selector string Label Selector --server string Server name of ID (required when type is server) --type string Resource Type (server, label_selector) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall create Create a Firewall ``` hcloud firewall create [options] --name <name> ``` ### Options ``` -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Name -o, --output stringArray output options: json|yaml --rules-file string JSON file containing your routes (use - to read from stdin). The structure of the file needs to be the same as within the API: https://docs.hetzner.cloud/reference/cloud#firewalls-get-a-firewall ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall delete-rule Delete a single rule from a Firewall ``` hcloud firewall delete-rule [options] (--direction in --source-ips <ips> | --direction out --destination-ips <ips>) (--protocol <tcp|udp> --port <port> | --protocol <icmp|esp|gre>) <firewall> ``` ### Options ``` --description string Description of the Firewall rule --destination-ips strings Destination IPs (CIDR Notation) (required when direction is out) --direction string Direction (in, out) (required) -h, --help help for delete-rule --port string Port to which traffic will be allowed, only applicable for protocols TCP and UDP --protocol string Protocol (icmp, esp, gre, udp or tcp) (required) --source-ips strings Source IPs (CIDR Notation) (required when direction is in) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall delete Delete a Firewall ``` hcloud firewall delete <firewall>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall describe Describe a Firewall ``` hcloud firewall describe [options] <firewall> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall list List Firewalls ### Synopsis Displays a list of Firewalls. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,applied_to_count (see available columns below). Columns: - age - applied_to_count - created - id - labels - name - rules_count ``` hcloud firewall list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall remove-from-resource Removes a Firewall from a single resource ``` hcloud firewall remove-from-resource (--type server --server <server> | --type label_selector --label-selector <label-selector>) <firewall> ``` ### Options ``` -h, --help help for remove-from-resource -l, --label-selector string Label Selector --server string Server name of ID (required when type is server) --type string Resource Type (server) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall remove-label Remove a label from a Firewall ``` hcloud firewall remove-label <firewall> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall replace-rules Replaces all rules from a Firewall from a file ``` hcloud firewall replace-rules --rules-file <file> <firewall> ``` ### Options ``` -h, --help help for replace-rules --rules-file string JSON file containing your routes (use - to read from stdin). The structure of the file needs to be the same as within the API: https://docs.hetzner.cloud/reference/cloud#firewalls-get-a-firewall ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls --- ## hcloud firewall update Update a Firewall ``` hcloud firewall update [options] <firewall> ``` ### Options ``` -h, --help help for update --name string Firewall name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud firewall](hcloud_firewall.md) - Manage Firewalls -
README.md 2.1 KB
## hcloud firewall Manage Firewalls ### Options ``` -h, --help help for firewall ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud firewall add-label](hcloud_firewall_add-label.md) - Add a label to a Firewall * [hcloud firewall add-rule](hcloud_firewall_add-rule.md) - Add a single rule to a firewall * [hcloud firewall apply-to-resource](hcloud_firewall_apply-to-resource.md) - Applies a Firewall to a single resource * [hcloud firewall create](hcloud_firewall_create.md) - Create a Firewall * [hcloud firewall delete](hcloud_firewall_delete.md) - Delete a Firewall * [hcloud firewall delete-rule](hcloud_firewall_delete-rule.md) - Delete a single rule from a Firewall * [hcloud firewall describe](hcloud_firewall_describe.md) - Describe a Firewall * [hcloud firewall list](hcloud_firewall_list.md) - List Firewalls * [hcloud firewall remove-from-resource](hcloud_firewall_remove-from-resource.md) - Removes a Firewall from a single resource * [hcloud firewall remove-label](hcloud_firewall_remove-label.md) - Remove a label from a Firewall * [hcloud firewall replace-rules](hcloud_firewall_replace-rules.md) - Replaces all rules from a Firewall from a file * [hcloud firewall update](hcloud_firewall_update.md) - Update a Firewall
-
-
floating-ip
-
commands.md 15.2 KB
## hcloud floating-ip add-label Add a label to a Floating IP ``` hcloud floating-ip add-label [--overwrite] <floating-ip> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip assign Assign a Floating IP to a server ``` hcloud floating-ip assign <floating-ip> <server> ``` ### Options ``` -h, --help help for assign ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip create Create a Floating IP ``` hcloud floating-ip create [options] --type <ipv4|ipv6> (--home-location <location> | --server <server>) ``` ### Options ``` --description string Description --enable-protection strings Enable protection (delete) (default: none) -h, --help help for create --home-location string Home Location --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Name -o, --output stringArray output options: json|yaml --server string Server to assign Floating IP to --type string Type (ipv4 or ipv6) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip delete Delete a Floating IP ``` hcloud floating-ip delete <floating-ip>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip describe Describe a Floating IP ``` hcloud floating-ip describe [options] <floating-ip> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip disable-protection Disable resource protection for a Floating IP ``` hcloud floating-ip disable-protection <floating-ip> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip enable-protection Enable resource protection for a Floating IP ``` hcloud floating-ip enable-protection <floating-ip> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip list List Floating IPs ### Synopsis Displays a list of Floating IPs. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,blocked (see available columns below). Columns: - age - blocked - created - description - dns - home - id - ip - labels - name - protection - server - type ``` hcloud floating-ip list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip remove-label Remove a label from a Floating IP ``` hcloud floating-ip remove-label <floating-ip> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip set-rdns Change reverse DNS of a Floating IP ``` hcloud floating-ip set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <floating-ip> ``` ### Options ``` -h, --help help for set-rdns -r, --hostname string Hostname to set as a reverse DNS PTR entry -i, --ip ip IP address for which the reverse DNS entry should be set --reset Reset the reverse DNS entry to the default value (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip unassign Unassign a Floating IP ``` hcloud floating-ip unassign <floating-ip> ``` ### Options ``` -h, --help help for unassign ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs --- ## hcloud floating-ip update Update a Floating IP ``` hcloud floating-ip update [options] <floating-ip> ``` ### Options ``` --description string Floating IP description -h, --help help for update --name string Floating IP name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud floating-ip](hcloud_floating-ip.md) - Manage Floating IPs -
README.md 2.2 KB
## hcloud floating-ip Manage Floating IPs ### Options ``` -h, --help help for floating-ip ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud floating-ip add-label](hcloud_floating-ip_add-label.md) - Add a label to a Floating IP * [hcloud floating-ip assign](hcloud_floating-ip_assign.md) - Assign a Floating IP to a server * [hcloud floating-ip create](hcloud_floating-ip_create.md) - Create a Floating IP * [hcloud floating-ip delete](hcloud_floating-ip_delete.md) - Delete a Floating IP * [hcloud floating-ip describe](hcloud_floating-ip_describe.md) - Describe a Floating IP * [hcloud floating-ip disable-protection](hcloud_floating-ip_disable-protection.md) - Disable resource protection for a Floating IP * [hcloud floating-ip enable-protection](hcloud_floating-ip_enable-protection.md) - Enable resource protection for a Floating IP * [hcloud floating-ip list](hcloud_floating-ip_list.md) - List Floating IPs * [hcloud floating-ip remove-label](hcloud_floating-ip_remove-label.md) - Remove a label from a Floating IP * [hcloud floating-ip set-rdns](hcloud_floating-ip_set-rdns.md) - Change reverse DNS of a Floating IP * [hcloud floating-ip unassign](hcloud_floating-ip_unassign.md) - Unassign a Floating IP * [hcloud floating-ip update](hcloud_floating-ip_update.md) - Update a Floating IP
-
-
getting-started
-
configuration.md 1.6 KB
<!-- --- date: "2026-09-07" date_changed: "2026-09-07" title: "Configuring hcloud" tags: [] language: "en" description: "" docs_type: ["getting_started"] product_category: ["Integrations"] translation: ["Integrations", "CLI", "Getting Started", "Configuring hcloud"] scrape_type: "whole" priority: 90 --- --> # Configuring hcloud The hcloud CLI tool can be configured using following methods: 1. Configuration file 2. Environment variables 3. Command line flags A higher number means a higher priority. For example, a command line flag will always override an environment variable. The configuration file is located at `~/.config/hcloud/cli.toml` by default (On Windows: `%APPDATA%\hcloud\cli.toml`). You can change the location by setting the `HCLOUD_CONFIG` environment variable or the `--config` flag. The configuration file stores global preferences, the currently active context, all contexts and context-specific preferences. Contexts always store a token and can optionally have additional preferences which take precedence over the globally set preferences. However, a config file is not required. If no config file is found, the CLI will use the default configuration. Overriding options using environment variables allows the hcloud CLI to function in a stateless way. For example, setting `HCLOUD_TOKEN` is already enough in many cases. You can use the `hcloud config` command to manage your configuration, for example to get, list, set and unset configuration options and preferences. You can view a list of all available options and preferences [here](manual/hcloud_config.md#synopsis). -
create-a-server.md 3.2 KB
<!-- --- 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", "Getting Started", "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 ``` -
output-options.md 4.5 KB
<!-- --- date: "2026-09-07" date_changed: "2026-09-07" title: "Output options" tags: [] language: "en" description: "" docs_type: ["how_to"] product_category: ["Integrations"] translation: ["Integrations", "CLI", "How-To: Usage", "Output options"] scrape_type: "whole" priority: 100 --- --> # Using output options The CLI allows you to customize the output format of some commands using the `--output` flag. This guide shows you how to use this feature and use it in combination with other tools. ## JSON `describe`, `list` and `create` commands support JSON output format. To use it, simply add the `--output json` flag to your command. For example, to get the details of a location in JSON format, you can use the following command: ```bash $ hcloud location describe fsn1 --output json { "id": 1, "name": "fsn1", "description": "Falkenstein DC Park 1", "country": "DE", "city": "Falkenstein", "latitude": 50.47612, "longitude": 12.370071, "network_zone": "eu-central" } ``` You can combine this with other tools to process the output. For example, you can use `jq` to filter the output: ```bash $ hcloud location describe fsn1 --output json | jq '.name' "fsn1" ``` ```bash $ hcloud location describe fsn1 --output json | jq '{id, name}' { "id": 1, "name": "fsn1" } ``` `list` commands return a list of objects in JSON format. For example, to get a list of all locations in JSON format, you can use the following command: ```bash $ hcloud location list --output json [ { "id": 1, "name": "fsn1", "description": "Falkenstein DC Park 1", "country": "DE", "city": "Falkenstein", "latitude": 50.47612, "longitude": 12.370071, "network_zone": "eu-central" }, { "id": 2, "name": "nbg1", "description": "Nuremberg DC Park 1", "country": "DE", "city": "Nuremberg", "latitude": 49.452102, "longitude": 11.076665, "network_zone": "eu-central" }, ... ] ``` Once again, you can use `jq` to filter the output. Following example shows how to get the names of all locations of which the network zone is `eu-central`: ```bash $ hcloud location list --output json | jq '[.[] | select(.network_zone == "eu-central") | .name]' [ "fsn1", "nbg1", "hel1" ] ``` ## YAML `describe`, `list` and `create` commands support YAML output format as well. ```bash $ hcloud location describe fsn1 --output yaml id: 1 name: fsn1 description: Falkenstein DC Park 1 country: DE city: Falkenstein latitude: 50.47612 longitude: 12.370071 network_zone: eu-central ``` For YAML, you can use `yq` instead of `jq`. ```bash $ hcloud location list --output yaml | yq '.[] | [{"id": .id, "name": .name}]' - id: 1 name: fsn1 - id: 2 name: nbg1 - id: 3 name: hel1 - id: 4 name: ash - id: 5 name: hil - id: 6 name: sin ``` ## Go Template Format `describe` commands support the Go string template format as well. You can read up on the syntax in the [Go documentation](https://pkg.go.dev/text/template). The data structures passed to the template are defined by our API and can be found in [hcloud-go](https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud/schema). For example, you could obtain the number of cores of a server using the following command: ```bash $ hcloud server describe my-server --output format='{{.ServerType.Cores}}' 2 ``` ## Table options `list` commands support table options as well. These options allow you to customize the output format of the output table, if not using JSON or YAML. > [!NOTE] > You can also combine both of the below options to use them at once: `--output noheader --output columns=id,name,network_zone` ### noheader This option removes the header from the output table. ```bash $ hcloud location list --output noheader 1 fsn1 Falkenstein DC Park 1 eu-central DE Falkenstein 2 nbg1 Nuremberg DC Park 1 eu-central DE Nuremberg 3 hel1 Helsinki DC Park 1 eu-central FI Helsinki 4 ash Ashburn, VA us-east US Ashburn, VA 5 hil Hillsboro, OR us-west US Hillsboro, OR 6 sin Singapore ap-southeast SG Singapore ``` ### columns This option allows you to filter by columns. ```bash $ hcloud location list --output columns=id,name,network_zone ID NAME NETWORK ZONE 1 fsn1 eu-central 2 nbg1 eu-central 3 hel1 eu-central 4 ash us-east 5 hil us-west 6 sin ap-southeast ``` Using the `--help` flag will show you a list of all available columns for this command. Note that these might include more than the default columns. -
setup.md 9.1 KB
<!-- --- date: "2026-09-07" date_changed: "2026-09-07" title: "Installing the hcloud CLI" tags: [] language: "en" description: "" docs_type: ["getting_started"] product_category: ["Integrations"] translation: ["Integrations", "CLI", "Getting Started", "Installing the hcloud CLI"] scrape_type: "whole" priority: 100 --- --> # Setup the hcloud CLI This tutorial will guide you through the process of setting up the hcloud CLI on your local machine. **Prerequisites:** Before you begin, ensure you have the following: - A [Hetzner Console account](https://console.hetzner.com). <br> ---- <br> 1. Install the hcloud CLI Click on one of the options below to view the respective steps. <details> <summary>Manual installation</summary> <ul> You can download pre-built binaries from our [GitHub releases](https://github.com/hetznercloud/cli/releases). Install them by extracting the archive and moving the binary to a directory in your `PATH`. On a 64-bit Linux system, it could look something like this: ```bash curl -sSLO https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz sudo tar -C /usr/local/bin --no-same-owner -xzf hcloud-linux-amd64.tar.gz hcloud rm hcloud-linux-amd64.tar.gz ``` > ℹ️ **Note** > This installation method does not provide automatic updates. Please make sure to keep your installation up to date manually. <br></ul> </details> <details> <summary>Installation using Go</summary> <ul> If you have Go installed, you can also install hcloud CLI from source using the following command: ```bash go install github.com/hetznercloud/cli/cmd/hcloud@latest ``` > ℹ️ **Note** > Binaries built with Go will not have the correct version embedded. > This installation method does not provide automatic updates. Please make sure to keep your installation up to date manually. <br></ul> </details> <details> <summary>Installation using .deb package (Debian/Ubuntu)</summary> <ul> On Debian and Ubuntu-based distributions, you can install the hcloud CLI using the `.deb` package: > ⚠️ **Warning** > Debian packages are experimental and might change or break in the future. 1. Download the latest `.deb` package from the [GitHub releases page](https://github.com/hetznercloud/cli/releases/latest). 2. Install the package using `dpkg`: ```bash # Download the package (replace with the actual version and architecture) curl -sSLO https://github.com/hetznercloud/cli/releases/latest/download/hcloud-cli_<version>_linux_amd64.deb # Install the package sudo dpkg -i hcloud-cli_<version>_linux_amd64.deb ``` The `.deb` package includes shell completions for bash, zsh, and fish, as well as man pages. <br></ul> </details> <details> <summary>Installation using .rpm package (Fedora/RHEL/CentOS)</summary> <ul> On Fedora, RHEL, CentOS, and other RPM-based distributions, you can install the hcloud CLI using the `.rpm` package: > ⚠️ **Warning** > RPM packages are experimental and might change or break in the future. 1. Download the latest `.rpm` package from the [GitHub releases page](https://github.com/hetznercloud/cli/releases/latest). 2. Install the package using `rpm` or `dnf`: ```bash # Download the package (replace with the actual version and architecture) curl -sSLO https://github.com/hetznercloud/cli/releases/latest/download/hcloud-cli-<version>-1.x86_64.rpm # Install using dnf (Fedora/RHEL 8+/CentOS 8+) sudo dnf install hcloud-cli-<version>-1.x86_64.rpm # Or install using rpm sudo rpm -i hcloud-cli-<version>-1.x86_64.rpm ``` The `.rpm` package includes shell completions for bash, zsh, and fish, as well as man pages. <br></ul> </details> <details> <summary>Installation using Homebrew</summary> <ul> On Linux and macOS you can also install the hcloud CLI using Homebrew: ```bash brew install hcloud ``` <br></ul> </details> <details> <summary>Installation on Windows using WinGet or Scoop</summary> <ul> On Windows, you can install `hcloud` using WinGet (Windows Package Manager) or Scoop: > ⚠️ **Warning** > The WinGet and Scoop package entries are not maintained by Hetzner. ```bash winget install HetznerCloud.CLI ``` ```bash scoop install hcloud ``` <br></ul> </details> <details> <summary>Using hcloud with Docker</summary> <ul> Instead of installing hcloud on the host, you can also use our docker image at `hetznercloud/cli`. ```bash docker run --rm -e HCLOUD_TOKEN="<your token>" hetznercloud/cli:latest <command> ``` If you want to use (and persist) your configuration, you can mount it to `/config.toml`: ```bash docker run --rm -v ~/.config/hcloud/cli.toml:/config.toml hetznercloud/cli:latest <command> ``` The image is based on Alpine Linux, so a shell is available in the image. You can use it to run commands interactively: ```bash docker run -it --rm --entrypoint /bin/sh hetznercloud/cli:latest ``` > ⚠️ **Warning** > Some third-party package repositories may provide outdated versions of the hcloud CLI. > Please consider one of the other installation methods. </ul> </details> <br> 2. Setup auto-completion (Optional) hcloud CLI offers auto-completion for bash, zsh, fish and PowerShell. It is recommended to enable it for a better user experience. Click on one of the options below to view the respective steps. <details> <summary>Bash</summary> <ul> To load completions into the current shell execute: ```bash source <(hcloud completion bash) ``` In order to make the completions permanent, append the line above to your `.bashrc`. <br></ul> </details> <details> <summary>Zsh</summary> <ul> If shell completions are not already enabled for your environment need to enable them. Add the following line to your ~/.zshrc file: ```bash autoload -Uz compinit; compinit ``` To load completions for each session execute the following commands: ```bash mkdir -p ~/.config/hcloud/completion/zsh hcloud completion zsh > ~/.config/hcloud/completion/zsh/_hcloud ``` Finally add the following line to your ~/.zshrc file, *before* you call the compinit function: ```bash fpath+=(~/.config/hcloud/completion/zsh) ``` In the end your ~/.zshrc file should contain the following two lines in the order given here. ```bash fpath+=(~/.config/hcloud/completion/zsh) # ... anything else that needs to be done before compinit autoload -Uz compinit; compinit # ... ``` You will need to start a new shell for this setup to take effect. <br></ul> </details> <details> <summary>Fish</summary> <ul> To load completions into the current shell execute: ```bash hcloud completion fish | source ``` In order to make the completions permanent execute once: ```bash hcloud completion fish > ~/.config/fish/completions/hcloud.fish ``` <br></ul> </details> <details> <summary>PowerShell</summary> <ul> To load completions into the current shell execute: ```bash PS> hcloud completion powershell | Out-String | Invoke-Expression ``` To load completions for every new session, run and source this file from your PowerShell profile. ```bash PS> hcloud completion powershell > hcloud.ps1 ``` <br></ul> </details> <br> 3. Create a context The hcloud CLI uses contexts to manage multiple Hetzner Cloud tokens and set configuration preferences. First, you need to create an API token. Follow the instructions in the [Hetzner Cloud documentation](https://docs.hetzner.com/cloud/api/getting-started/generating-api-token/) to create your project API token. Once you have your token, you can create a context using the following command: ```bash hcloud context create <context-name> ``` Ideally, keep the context name similar to the project name so you can easily identify it later. When prompted, enter the API token you created earlier. Your context should now be created and activated. <br> 4. Verify everything works To verify that the hcloud CLI is working correctly, you can run the following command: ```bash hcloud location list ``` You should see something like this: ```plaintext ID NAME DESCRIPTION NETWORK ZONE COUNTRY CITY 1 fsn1 Falkenstein DC Park 1 eu-central DE Falkenstein 2 nbg1 Nuremberg DC Park 1 eu-central DE Nuremberg 3 hel1 Helsinki DC Park 1 eu-central FI Helsinki 4 ash Ashburn, VA us-east US Ashburn, VA 5 hil Hillsboro, OR us-west US Hillsboro, OR 6 sin Singapore ap-southeast SG Singapore ``` If you see this output, congratulations! You have successfully set up the hcloud CLI on your local machine. If there are any problems, make sure you followed all steps of this tutorial correctly. If there still are problems, you can reach out to our [Support](https://console.hetzner.com/support) to get help.
-
-
image
-
commands.md 9.9 KB
## hcloud image add-label Add a label to an Image ``` hcloud image add-label [--overwrite] <image> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image delete Delete an Image ``` hcloud image delete <image>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image describe Describe an Image ``` hcloud image describe [options] <image> ``` ### Options ``` -a, --architecture string architecture of the Image, default is x86 (default "x86") -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image disable-protection Disable resource protection for an Image ``` hcloud image disable-protection <image> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image enable-protection Enable resource protection for an Image ``` hcloud image enable-protection <image> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image list List Images ### Synopsis Displays a list of Images. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,architecture (see available columns below). Columns: - age - architecture - bound_to - created - created_from - deprecated - description - disk_size - id - image_size - labels - name - os_flavor - os_version - protection - rapid_deploy - status - type ``` hcloud image list [options] ``` ### Options ``` -a, --architecture strings Only show Images of given architecture: x86|arm -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result -t, --type strings Only show Images of given type: system|app|snapshot|backup ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image remove-label Remove a label from an Image ``` hcloud image remove-label <image> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images --- ## hcloud image update Update an Image ``` hcloud image update [options] <image> ``` ### Options ``` --description string Image description -h, --help help for update --type string Image type ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud image](hcloud_image.md) - Manage Images -
README.md 1.6 KB
## hcloud image Manage Images ### Options ``` -h, --help help for image ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud image add-label](hcloud_image_add-label.md) - Add a label to an Image * [hcloud image delete](hcloud_image_delete.md) - Delete an Image * [hcloud image describe](hcloud_image_describe.md) - Describe an Image * [hcloud image disable-protection](hcloud_image_disable-protection.md) - Disable resource protection for an Image * [hcloud image enable-protection](hcloud_image_enable-protection.md) - Enable resource protection for an Image * [hcloud image list](hcloud_image_list.md) - List Images * [hcloud image remove-label](hcloud_image_remove-label.md) - Remove a label from an Image * [hcloud image update](hcloud_image_update.md) - Update an Image
-
-
info
-
commands.md 18 KB
## hcloud datacenter describe Describe a Datacenter (deprecated) ### Synopsis The 'hcloud datacenter ...' commands are deprecated and will be removed after 1 Oct. 2026. After this date, requests to the datacenters API endpoints will return HTTP 410 Gone. See https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated for more details. ``` hcloud datacenter describe [options] <datacenter> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud datacenter](hcloud_datacenter.md) - View Datacenters (deprecated) --- ## hcloud datacenter list List Datacenters (deprecated) ### Synopsis The 'hcloud datacenter ...' commands are deprecated and will be removed after 1 Oct. 2026. After this date, requests to the datacenters API endpoints will return HTTP 410 Gone. See https://docs.hetzner.cloud/changelog#2026-06-02-datacenters-deprecated for more details. Displays a list of Datacenters. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=description,id (see available columns below). Columns: - description - id - location - name ``` hcloud datacenter list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud datacenter](hcloud_datacenter.md) - View Datacenters (deprecated) --- ## hcloud iso describe Describe an ISO ``` hcloud iso describe [options] <iso> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud iso](hcloud_iso.md) - View ISOs --- ## hcloud iso list List ISOs ### Synopsis Displays a list of ISOs. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=architecture,description (see available columns below). Columns: - architecture - description - id - name - type ``` hcloud iso list [options] ``` ### Options ``` --architecture strings Only show Images of given architecture: x86|arm -h, --help help for list --include-architecture-wildcard Include ISOs with unknown architecture, only required if you want so show custom ISOs and still filter for architecture. (true, false) -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result --type strings Types to include (public, private) (default [public,private]) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud iso](hcloud_iso.md) - View ISOs --- ## hcloud load-balancer-type describe Describe a Load Balancer Type ``` hcloud load-balancer-type describe [options] <load-balancer-type> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer-type](hcloud_load-balancer-type.md) - View Load Balancer Types --- ## hcloud load-balancer-type list List Load Balancer Types ### Synopsis Displays a list of Load Balancer Types. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=deprecated,description (see available columns below). Columns: - deprecated - description - id - max_assigned_certificates - max_connections - max_services - max_targets - name ``` hcloud load-balancer-type list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer-type](hcloud_load-balancer-type.md) - View Load Balancer Types --- ## hcloud location describe Describe a Location ``` hcloud location describe [options] <location> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud location](hcloud_location.md) - View Locations --- ## hcloud location list List Locations ### Synopsis Displays a list of Locations. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=city,country (see available columns below). Columns: - city - country - description - id - latitude - longitude - name - network_zone ``` hcloud location list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud location](hcloud_location.md) - View Locations --- ## hcloud server-type describe Describe a Server Type ``` hcloud server-type describe [options] <server-type> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server-type](hcloud_server-type.md) - View Server Types --- ## hcloud server-type list List Server Types ### Synopsis Displays a list of Server Types. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=architecture,category (see available columns below). Columns: - architecture - category - cores - cpu_type - deprecated - description - disk - id - included_traffic - location - location_available - location_recommended - memory - name - storage_type - traffic ``` hcloud server-type list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server-type](hcloud_server-type.md) - View Server Types --- ## hcloud storage-box-type describe Describe a Storage Box Type ``` hcloud storage-box-type describe [options] <storage-box-type> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box-type](hcloud_storage-box-type.md) - View Storage Box Types --- ## hcloud storage-box-type list List Storage Box Types ### Synopsis Displays a list of Storage Box Types. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=automatic_snapshot_limit,deprecated (see available columns below). Columns: - automatic_snapshot_limit - deprecated - description - id - name - size - snapshot_limit - subaccounts_limit ``` hcloud storage-box-type list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box-type](hcloud_storage-box-type.md) - View Storage Box Types -
README.md 1.2 KB
## hcloud storage-box-type View Storage Box Types ### Options ``` -h, --help help for storage-box-type ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud storage-box-type describe](hcloud_storage-box-type_describe.md) - Describe a Storage Box Type * [hcloud storage-box-type list](hcloud_storage-box-type_list.md) - List Storage Box Types
-
-
load-balancer
-
commands.md 33 KB
## hcloud load-balancer add-label Add a label to a Load Balancer ``` hcloud load-balancer add-label [--overwrite] <load-balancer> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer add-service Add a service to a Load Balancer ``` hcloud load-balancer add-service [options] (--protocol http | --protocol tcp --listen-port <1-65535> --destination-port <1-65535> | --protocol https --http-certificates <ids>) <load-balancer> ``` ### Options ``` --destination-port int Destination port of the service on the targets --health-check-http-domain string The domain we request when performing a http health check --health-check-http-path string The path we request when performing a http health check --health-check-http-response string The response we expect to determine a target as healthy --health-check-http-status-codes strings List of status codes we expect to determine a target as healthy --health-check-http-tls Determine if the health check should verify if the target answers with a valid TLS certificate (true, false) --health-check-interval duration The interval the health check is performed (default 15s) --health-check-port int The port the health check is performed over --health-check-protocol string The protocol the health check is performed over --health-check-retries int Number of retries after a health check is marked as failed (default 3) --health-check-timeout duration The timeout after a health check is marked as failed (default 10s) -h, --help help for add-service --http-certificates strings IDs or names of Certificates which should be attached to this Load Balancer --http-cookie-lifetime duration Sticky Sessions: Lifetime of the cookie --http-cookie-name string Sticky Sessions: Cookie Name we set --http-redirect-http Redirect all traffic on port 80 to port 443 (true, false) --http-sticky-sessions Enable Sticky Sessions (true, false) --http-timeout-idle duration Idle timeout for HTTP connections (30s-300s) --listen-port int Listen port of the service --protocol string Protocol of the service (required) --proxy-protocol Enable proxyprotocol (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer add-target Add a target to a Load Balancer ``` hcloud load-balancer add-target [options] (--server <server> | --label-selector <label-selector> | --ip <ip>) <load-balancer> ``` ### Options ``` -h, --help help for add-target --ip string Use the passed IP address as target --label-selector string Label Selector --server string Name or ID of the server --use-private-ip Determine if the Load Balancer should connect to the target via the network (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer attach-to-network Attach a Load Balancer to a Network ``` hcloud load-balancer attach-to-network [--ip <ip>] --network <network> <load-balancer> ``` ### Options ``` -h, --help help for attach-to-network --ip ip IP address to assign to the Load Balancer (auto-assigned if omitted) --ip-range ipNet IP range in CIDR block notation of the subnet to attach to (auto-assigned if omitted) -n, --network string Network (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer change-algorithm Changes the algorithm of a Load Balancer ``` hcloud load-balancer change-algorithm --algorithm-type <round_robin|least_connections> <load-balancer> ``` ### Options ``` --algorithm-type string New Load Balancer algorithm (round_robin, least_connections) (required) -h, --help help for change-algorithm ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer change-type Change type of a Load Balancer ``` hcloud load-balancer change-type <load-balancer> <load-balancer-type> ``` ### Options ``` -h, --help help for change-type ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer create Create a Load Balancer ``` hcloud load-balancer create [options] --name <name> --type <type> ``` ### Options ``` --algorithm-type string Algorithm Type name (round_robin or least_connections) --enable-protection strings Enable protection (delete) (default: none) -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --location string Location (ID or name) --name string Load Balancer name (required) --network string Name or ID of the Network the Load Balancer should be attached to on creation --network-zone string Network Zone -o, --output stringArray output options: json|yaml --type string Load Balancer Type (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer delete-service Deletes a service from a Load Balancer ``` hcloud load-balancer delete-service --listen-port <1-65535> <load-balancer> ``` ### Options ``` -h, --help help for delete-service --listen-port int The listen port of the service you want to delete (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer delete Delete a Load Balancer ``` hcloud load-balancer delete <load-balancer>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer describe Describe a Load Balancer ``` hcloud load-balancer describe [options] <load-balancer> ``` ### Options ``` --expand-targets Expand all label_selector targets (true, false) -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer detach-from-network Detach a Load Balancer from a Network ``` hcloud load-balancer detach-from-network --network <network> <load-balancer> ``` ### Options ``` -h, --help help for detach-from-network -n, --network string Network (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer disable-protection Disable resource protection for a Load Balancer ``` hcloud load-balancer disable-protection <load-balancer> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer disable-public-interface Disable the public interface of a Load Balancer ``` hcloud load-balancer disable-public-interface <load-balancer> ``` ### Options ``` -h, --help help for disable-public-interface ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer enable-protection Enable resource protection for a Load Balancer ``` hcloud load-balancer enable-protection <load-balancer> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer enable-public-interface Enable the public interface of a Load Balancer ``` hcloud load-balancer enable-public-interface <load-balancer> ``` ### Options ``` -h, --help help for enable-public-interface ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer list List Load Balancer ### Synopsis Displays a list of Load Balancer. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - health - id - ipv4 - ipv6 - labels - location - name - network_zone - protection - type ``` hcloud load-balancer list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer metrics [ALPHA] Metrics from a Load Balancer ``` hcloud load-balancer metrics [options] (--type <open_connections|connections_per_second|requests_per_second|bandwidth>)... <load-balancer> ``` ### Options ``` --end string ISO 8601 timestamp -h, --help help for metrics -o, --output stringArray output options: json|yaml --start string ISO 8601 timestamp --type strings Types of metrics you want to show ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer remove-label Remove a label from a Load Balancer ``` hcloud load-balancer remove-label <load-balancer> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer remove-target Remove a target from a Load Balancer ``` hcloud load-balancer remove-target [options] <load-balancer> ``` ### Options ``` -h, --help help for remove-target --ip string IP address of an IP target --label-selector string Label Selector --server string Name or ID of the server ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer set-rdns Change reverse DNS of a Load Balancer ``` hcloud load-balancer set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <load-balancer> ``` ### Options ``` -h, --help help for set-rdns -r, --hostname string Hostname to set as a reverse DNS PTR entry -i, --ip ip IP address for which the reverse DNS entry should be set --reset Reset the reverse DNS entry to the default value (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer update-service Updates a service from a Load Balancer ``` hcloud load-balancer update-service [options] --listen-port <1-65535> <load-balancer> ``` ### Options ``` --destination-port int Destination port of the service on the targets --health-check-http-domain string The domain we request when performing a http health check --health-check-http-path string The path we request when performing a http health check --health-check-http-response string The response we expect to determine a target as healthy --health-check-http-status-codes strings List of status codes we expect to determine a target as healthy --health-check-http-tls Determine if the health check should verify if the target answers with a valid TLS certificate (true, false) --health-check-interval duration The interval the health check is performed (default 15s) --health-check-port int The port the health check is performed over --health-check-protocol string The protocol the health check is performed over --health-check-retries int Number of retries after a health check is marked as failed (default 3) --health-check-timeout duration The timeout after a health check is marked as failed (default 10s) -h, --help help for update-service --http-certificates strings IDs or names of Certificates which should be attached to this Load Balancer --http-cookie-lifetime duration Sticky Sessions: Lifetime of the cookie --http-cookie-name string Sticky Sessions: Cookie Name which will be set --http-redirect-http Enable or disable redirect all traffic on port 80 to port 443 (true, false) --http-sticky-sessions Enable or disable (with --http-sticky-sessions=false) Sticky Sessions (true, false) --http-timeout-idle duration Idle timeout for HTTP connections (30s-300s) --listen-port int The listen port of the service that you want to update (required) --protocol string The protocol to use for load balancing traffic --proxy-protocol Enable or disable (with --proxy-protocol=false) Proxy Protocol (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers --- ## hcloud load-balancer update Update a Load Balancer ``` hcloud load-balancer update [options] <load-balancer> ``` ### Options ``` -h, --help help for update --name string Load Balancer name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud load-balancer](hcloud_load-balancer.md) - Manage Load Balancers -
README.md 3.5 KB
## hcloud load-balancer Manage Load Balancers ### Options ``` -h, --help help for load-balancer ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud load-balancer add-label](hcloud_load-balancer_add-label.md) - Add a label to a Load Balancer * [hcloud load-balancer add-service](hcloud_load-balancer_add-service.md) - Add a service to a Load Balancer * [hcloud load-balancer add-target](hcloud_load-balancer_add-target.md) - Add a target to a Load Balancer * [hcloud load-balancer attach-to-network](hcloud_load-balancer_attach-to-network.md) - Attach a Load Balancer to a Network * [hcloud load-balancer change-algorithm](hcloud_load-balancer_change-algorithm.md) - Changes the algorithm of a Load Balancer * [hcloud load-balancer change-type](hcloud_load-balancer_change-type.md) - Change type of a Load Balancer * [hcloud load-balancer create](hcloud_load-balancer_create.md) - Create a Load Balancer * [hcloud load-balancer delete](hcloud_load-balancer_delete.md) - Delete a Load Balancer * [hcloud load-balancer delete-service](hcloud_load-balancer_delete-service.md) - Deletes a service from a Load Balancer * [hcloud load-balancer describe](hcloud_load-balancer_describe.md) - Describe a Load Balancer * [hcloud load-balancer detach-from-network](hcloud_load-balancer_detach-from-network.md) - Detach a Load Balancer from a Network * [hcloud load-balancer disable-protection](hcloud_load-balancer_disable-protection.md) - Disable resource protection for a Load Balancer * [hcloud load-balancer disable-public-interface](hcloud_load-balancer_disable-public-interface.md) - Disable the public interface of a Load Balancer * [hcloud load-balancer enable-protection](hcloud_load-balancer_enable-protection.md) - Enable resource protection for a Load Balancer * [hcloud load-balancer enable-public-interface](hcloud_load-balancer_enable-public-interface.md) - Enable the public interface of a Load Balancer * [hcloud load-balancer list](hcloud_load-balancer_list.md) - List Load Balancer * [hcloud load-balancer metrics](hcloud_load-balancer_metrics.md) - [ALPHA] Metrics from a Load Balancer * [hcloud load-balancer remove-label](hcloud_load-balancer_remove-label.md) - Remove a label from a Load Balancer * [hcloud load-balancer remove-target](hcloud_load-balancer_remove-target.md) - Remove a target from a Load Balancer * [hcloud load-balancer set-rdns](hcloud_load-balancer_set-rdns.md) - Change reverse DNS of a Load Balancer * [hcloud load-balancer update](hcloud_load-balancer_update.md) - Update a Load Balancer * [hcloud load-balancer update-service](hcloud_load-balancer_update-service.md) - Updates a service from a Load Balancer
-
-
network
-
commands.md 18.9 KB
## hcloud network add-label Add a label to a Network ``` hcloud network add-label [--overwrite] <network> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network add-route Add a route to a Network ``` hcloud network add-route --destination <destination> --gateway <ip> <network> ``` ### Options ``` --destination ipNet Destination Network or host (required) --gateway ip Gateway IP address (required) -h, --help help for add-route ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network add-subnet Add a subnet to a Network ``` hcloud network add-subnet [options] --type <cloud|server|vswitch> --network-zone <zone> <network> ``` ### Options ``` -h, --help help for add-subnet --ip-range ipNet Range to allocate IPs from --network-zone string Name of Network zone (required) --type string Type of subnet (required) --vswitch-id int ID of the vSwitch ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network change-ip-range Change the IP range of a Network ``` hcloud network change-ip-range --ip-range <ip-range> <network> ``` ### Options ``` -h, --help help for change-ip-range --ip-range ipNet New IP range (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network create Create a Network ``` hcloud network create [options] --name <name> --ip-range <ip-range> ``` ### Options ``` --enable-protection strings Enable protection (delete) (default: none) --expose-routes-to-vswitch Expose routes from this Network to the vSwitch connection. It only takes effect if a vSwitch connection is active. (true, false) -h, --help help for create --ip-range ipNet Network IP range (required) --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Network name (required) -o, --output stringArray output options: json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network delete Delete a network ``` hcloud network delete <network>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network describe Describe a Network ``` hcloud network describe [options] <network> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network disable-protection Disable resource protection for a Network ``` hcloud network disable-protection <network> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network enable-protection Enable resource protection for a Network ``` hcloud network enable-protection <network> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network expose-routes-to-vswitch Expose routes to connected vSwitch ### Synopsis Enabling this will expose routes to the connected vSwitch. Set the --disable flag to remove the exposed routes. ``` hcloud network expose-routes-to-vswitch [--disable] <network> ``` ### Options ``` --disable Remove any exposed routes from the connected vSwitch -h, --help help for expose-routes-to-vswitch ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network list List Networks ### Synopsis Displays a list of Networks. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - expose_routes_to_v_switch - id - ip_range - labels - name - protection - servers ``` hcloud network list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network remove-label Remove a label from a Network ``` hcloud network remove-label <network> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network remove-route Remove a route from a Network ``` hcloud network remove-route --destination <destination> --gateway <ip> <network> ``` ### Options ``` --destination ipNet Destination Network or host (required) --gateway ip Gateway IP address (required) -h, --help help for remove-route ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network remove-subnet Remove a subnet from a Network ``` hcloud network remove-subnet --ip-range <ip-range> <network> ``` ### Options ``` -h, --help help for remove-subnet --ip-range ipNet Subnet IP range (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks --- ## hcloud network update Update a Network. To enable or disable exposing routes to the vSwitch connection you can use the subcommand "hcloud network expose-routes-to-vswitch". ``` hcloud network update [options] <network> ``` ### Options ``` -h, --help help for update --name string Network name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud network](hcloud_network.md) - Manage Networks -
README.md 2.5 KB
## hcloud network Manage Networks ### Options ``` -h, --help help for network ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud network add-label](hcloud_network_add-label.md) - Add a label to a Network * [hcloud network add-route](hcloud_network_add-route.md) - Add a route to a Network * [hcloud network add-subnet](hcloud_network_add-subnet.md) - Add a subnet to a Network * [hcloud network change-ip-range](hcloud_network_change-ip-range.md) - Change the IP range of a Network * [hcloud network create](hcloud_network_create.md) - Create a Network * [hcloud network delete](hcloud_network_delete.md) - Delete a network * [hcloud network describe](hcloud_network_describe.md) - Describe a Network * [hcloud network disable-protection](hcloud_network_disable-protection.md) - Disable resource protection for a Network * [hcloud network enable-protection](hcloud_network_enable-protection.md) - Enable resource protection for a Network * [hcloud network expose-routes-to-vswitch](hcloud_network_expose-routes-to-vswitch.md) - Expose routes to connected vSwitch * [hcloud network list](hcloud_network_list.md) - List Networks * [hcloud network remove-label](hcloud_network_remove-label.md) - Remove a label from a Network * [hcloud network remove-route](hcloud_network_remove-route.md) - Remove a route from a Network * [hcloud network remove-subnet](hcloud_network_remove-subnet.md) - Remove a subnet from a Network * [hcloud network update](hcloud_network_update.md) - Update a Network. To enable or disable exposing routes to the vSwitch connection you can use the subcommand "hcloud network expose-routes-to-vswitch".
-
-
placement-group
-
commands.md 9 KB
## hcloud placement-group add-label Add a label to a Placement Group ``` hcloud placement-group add-label [--overwrite] <placement-group> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group create Create a Placement Group ``` hcloud placement-group create [options] --name <name> --type <type> ``` ### Options ``` -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Name -o, --output stringArray output options: json|yaml --type string Type of the Placement Group ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group delete Delete a Placement Group ``` hcloud placement-group delete <placement-group>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group describe Describe a Placement Group ``` hcloud placement-group describe [options] <placement-group> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group list List Placement Groups ### Synopsis Displays a list of Placement Groups. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - id - name - servers - type ``` hcloud placement-group list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group remove-label Remove a label from a Placement Group ``` hcloud placement-group remove-label <placement-group> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups --- ## hcloud placement-group update Update a Placement Group ``` hcloud placement-group update [options] <placement-group> ``` ### Options ``` -h, --help help for update --name string Placement Group name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud placement-group](hcloud_placement-group.md) - Manage Placement Groups -
README.md 1.7 KB
## hcloud placement-group Manage Placement Groups ### Options ``` -h, --help help for placement-group ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud placement-group add-label](hcloud_placement-group_add-label.md) - Add a label to a Placement Group * [hcloud placement-group create](hcloud_placement-group_create.md) - Create a Placement Group * [hcloud placement-group delete](hcloud_placement-group_delete.md) - Delete a Placement Group * [hcloud placement-group describe](hcloud_placement-group_describe.md) - Describe a Placement Group * [hcloud placement-group list](hcloud_placement-group_list.md) - List Placement Groups * [hcloud placement-group remove-label](hcloud_placement-group_remove-label.md) - Remove a label from a Placement Group * [hcloud placement-group update](hcloud_placement-group_update.md) - Update a Placement Group
-
-
primary-ip
-
commands.md 16 KB
## hcloud primary-ip add-label Add a label to a Primary IP ``` hcloud primary-ip add-label [--overwrite] <primary-ip> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip assign Assign a Primary IP to an assignee (usually a Server) ``` hcloud primary-ip assign --server <server> <primary-ip> ``` ### Options ``` -h, --help help for assign --server string Name or ID of the Server ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip create Create a Primary IP ### Synopsis Create a Primary IP. The --datacenter flag has been removed. Use --location or --assignee-id instead. See https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters. The --assignee-type flag will be required together with the --assignee-id flag. Using the default value (server) for the --assignee-type flag is deprecated. Consider explicitly setting the --assignee-type flag. See https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-will-return-unassigned and https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-make-assignee_type-optional. ``` hcloud primary-ip create [options] --type <ipv4|ipv6> --name <name> ``` ### Options ``` --assignee-id int Assignee (usually a Server) to assign Primary IP to --assignee-type string Assignee Type to assign Primary IP to (default: server) (default "server") --auto-delete Delete Primary IP if assigned resource is deleted (true, false) --enable-protection strings Enable protection (delete) (default: none) -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --location string Location (ID or name) of Primary IP --name string Name (required) -o, --output stringArray output options: json|yaml --type string Type (ipv4 or ipv6) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip delete Delete a Primary IP ``` hcloud primary-ip delete <primary-ip>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip describe Describe a Primary IP ``` hcloud primary-ip describe [options] <primary-ip> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip disable-protection Disable resource protection for a Primary IP ``` hcloud primary-ip disable-protection <primary-ip> [delete] ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip enable-protection Enable resource protection for a Primary IP ``` hcloud primary-ip enable-protection <primary-ip> [delete] ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip list List Primary IPs ### Synopsis Displays a list of Primary IPs. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,assignee (see available columns below). Columns: - age - assignee - assignee_id - assignee_type - auto_delete - blocked - created - dns - id - ip - labels - name - protection - type ``` hcloud primary-ip list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip remove-label Remove a label from a Primary IP ``` hcloud primary-ip remove-label <primary-ip> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip set-rdns Change reverse DNS of a Primary IP ``` hcloud primary-ip set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <primary-ip> ``` ### Options ``` -h, --help help for set-rdns -r, --hostname string Hostname to set as a reverse DNS PTR entry -i, --ip ip IP address for which the reverse DNS entry should be set --reset Reset the reverse DNS entry to the default value (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip unassign Unassign a Primary IP from an assignee (usually a server) ``` hcloud primary-ip unassign <primary-ip> ``` ### Options ``` -h, --help help for unassign ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs --- ## hcloud primary-ip update Update a Primary IP ``` hcloud primary-ip update [options] <primary-ip> ``` ### Options ``` --auto-delete Delete this Primary IP when the resource it is assigned to is deleted (true, false) -h, --help help for update --name string Primary IP name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud primary-ip](hcloud_primary-ip.md) - Manage Primary IPs -
README.md 2.2 KB
## hcloud primary-ip Manage Primary IPs ### Options ``` -h, --help help for primary-ip ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud primary-ip add-label](hcloud_primary-ip_add-label.md) - Add a label to a Primary IP * [hcloud primary-ip assign](hcloud_primary-ip_assign.md) - Assign a Primary IP to an assignee (usually a Server) * [hcloud primary-ip create](hcloud_primary-ip_create.md) - Create a Primary IP * [hcloud primary-ip delete](hcloud_primary-ip_delete.md) - Delete a Primary IP * [hcloud primary-ip describe](hcloud_primary-ip_describe.md) - Describe a Primary IP * [hcloud primary-ip disable-protection](hcloud_primary-ip_disable-protection.md) - Disable resource protection for a Primary IP * [hcloud primary-ip enable-protection](hcloud_primary-ip_enable-protection.md) - Enable resource protection for a Primary IP * [hcloud primary-ip list](hcloud_primary-ip_list.md) - List Primary IPs * [hcloud primary-ip remove-label](hcloud_primary-ip_remove-label.md) - Remove a label from a Primary IP * [hcloud primary-ip set-rdns](hcloud_primary-ip_set-rdns.md) - Change reverse DNS of a Primary IP * [hcloud primary-ip unassign](hcloud_primary-ip_unassign.md) - Unassign a Primary IP from an assignee (usually a server) * [hcloud primary-ip update](hcloud_primary-ip_update.md) - Update a Primary IP
-
-
server
-
commands.md 43.6 KB
## hcloud server add-label Add a label to a Server ``` hcloud server add-label [--overwrite] <server> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server add-to-placement-group Add a Server to a Placement Group ``` hcloud server add-to-placement-group --placement-group <placement-group> <server> ``` ### Options ``` -h, --help help for add-to-placement-group -g, --placement-group string Placement Group (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server attach-iso Attach an ISO to a server ``` hcloud server attach-iso <server> <iso> ``` ### Options ``` -h, --help help for attach-iso ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server attach-to-network Attach a Server to a Network ``` hcloud server attach-to-network [options] --network <network> <server> ``` ### Options ``` --alias-ips ipSlice Additional IP addresses to be assigned to the Server (default []) -h, --help help for attach-to-network --ip ip IP address to assign to the Server (auto-assigned if omitted) --ip-range ipNet IP range in CIDR block notation of the subnet to attach to (auto-assigned if omitted) -n, --network string Network (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server change-alias-ips Change a server's alias IPs in a Network ``` hcloud server change-alias-ips [options] --network <network> <server> ``` ### Options ``` --alias-ips strings New alias IPs --clear Remove all alias IPs -h, --help help for change-alias-ips -n, --network string Network (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server change-type Change type of a server ``` hcloud server change-type [--keep-disk] <server> <server-type> ``` ### Options ``` -h, --help help for change-type --keep-disk Keep disk size of current Server Type. This enables downgrading the server. (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server create-image Create an Image from a Server ``` hcloud server create-image [options] --type <snapshot|backup> <server> ``` ### Options ``` --description string Image description -h, --help help for create-image --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --type string Image type (backup, snapshot) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server create Create a Server ### Synopsis Create a Server. The --datacenter flag has been removed. Use --location instead. See https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters. ``` hcloud server create [options] --name <name> --type <server-type> --image <image> ``` ### Options ``` --allow-deprecated-image Enable the use of deprecated Images (default: false) (true, false) --automount Automount Volumes after attach (default: false) (true, false) --enable-backup Enable automatic backups (true, false) --enable-protection strings Enable protection (delete, rebuild) (default: none) --firewall strings ID or name of Firewall to attach the Server to (can be specified multiple times) -h, --help help for create --image string Image (ID or name) (required) --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --location string Location (ID or name) --name string Server name (required) --network strings ID or name of Network to attach the Server to (can be specified multiple times) -o, --output stringArray output options: json|yaml --placement-group string Placement Group (ID of name) --primary-ipv4 string Primary IPv4 (ID of name) --primary-ipv6 string Primary IPv6 (ID of name) --ssh-key strings ID or name of SSH Key to inject (can be specified multiple times) --start-after-create Start Server right after creation (true, false) (default true) --type string Server Type (ID or name) (required) --user-data-from-file stringArray Read user data from specified file (use - to read from stdin) --volume strings ID or name of Volume to attach (can be specified multiple times) --without-ipv4 Creates the Server without an IPv4 (default: false) (true, false) --without-ipv6 Creates the Server without an IPv6 (default: false) (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server delete Delete a server ``` hcloud server delete <server>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server describe Describe a Server ``` hcloud server describe [options] <server> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server detach-from-network Detach a Server from a Network ``` hcloud server detach-from-network --network <network> <server> ``` ### Options ``` -h, --help help for detach-from-network -n, --network string Network (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server detach-iso Detach an ISO from a Server ``` hcloud server detach-iso <server> ``` ### Options ``` -h, --help help for detach-iso ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server disable-backup Disable backup for a server ``` hcloud server disable-backup <server> ``` ### Options ``` -h, --help help for disable-backup ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server disable-protection Disable resource protection for a Server ``` hcloud server disable-protection <server> (delete|rebuild)... ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server disable-rescue Disable rescue for a server ``` hcloud server disable-rescue <server> ``` ### Options ``` -h, --help help for disable-rescue ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server enable-backup Enable backup for a server ``` hcloud server enable-backup <server> ``` ### Options ``` -h, --help help for enable-backup --window string (deprecated) The time window for the daily backup to run. All times are in UTC. 22-02 means that the backup will be started between 10 PM and 2 AM. ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server enable-protection Enable resource protection for a Server ``` hcloud server enable-protection <server> (delete|rebuild)... ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server enable-rescue Enable rescue for a server ``` hcloud server enable-rescue [options] <server> ``` ### Options ``` -h, --help help for enable-rescue --ssh-key strings ID or name of SSH Key to inject (can be specified multiple times) --type string Rescue type (default "linux64") ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server ip Print a server's IP address ``` hcloud server ip [--ipv6] <server> ``` ### Options ``` -h, --help help for ip -6, --ipv6 Print the first address of the Server's Primary IPv6 network ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server list List Servers ### Synopsis Displays a list of Servers. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,backup_window (see available columns below). Columns: - age - backup_window - created - id - included_traffic - ingoing_traffic - ipv4 - ipv6 - labels - location - locked - name - outgoing_traffic - placement_group - primary_disk_size - private_net - protection - rescue_enabled - status - type - volumes ``` hcloud server list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result --status strings Only Servers with one of these statuses are displayed ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server metrics [ALPHA] Metrics from a Server ``` hcloud server metrics [options] (--type <cpu|disk|network>)... <server> ``` ### Options ``` --end string ISO 8601 timestamp -h, --help help for metrics -o, --output stringArray output options: json|yaml --start string ISO 8601 timestamp --type strings Types of metrics you want to show ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server poweroff Poweroff a Server ``` hcloud server poweroff <server> ``` ### Options ``` -h, --help help for poweroff ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server poweron Poweron a server ``` hcloud server poweron <server> ``` ### Options ``` -h, --help help for poweron ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server reboot Reboot a server ``` hcloud server reboot <server> ``` ### Options ``` -h, --help help for reboot ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server rebuild Rebuild a server ``` hcloud server rebuild [options] --image <image> <server> ``` ### Options ``` --allow-deprecated-image Enable the use of deprecated images (default: false) (true, false) -h, --help help for rebuild --image string ID or name of Image to rebuild from (required) --user-data-from-file stringArray Read user data from specified file (use - to read from stdin) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server remove-from-placement-group Removes a Server from a Placement Group ``` hcloud server remove-from-placement-group <server> ``` ### Options ``` -h, --help help for remove-from-placement-group ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server remove-label Remove a label from a Server ``` hcloud server remove-label <server> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server request-console Request a WebSocket VNC console for a Server ``` hcloud server request-console [options] <server> ``` ### Options ``` -h, --help help for request-console -o, --output stringArray output options: json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server reset-password Reset the root password of a Server ``` hcloud server reset-password [options] <server> ``` ### Options ``` -h, --help help for reset-password -o, --output stringArray output options: json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server reset Reset a Server ``` hcloud server reset [options] <server> ``` ### Options ``` -h, --help help for reset ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server set-rdns Change reverse DNS of a Server ``` hcloud server set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <server> ``` ### Options ``` -h, --help help for set-rdns -r, --hostname string Hostname to set as a reverse DNS PTR entry -i, --ip ip IP address for which the reverse DNS entry should be set --reset Reset the reverse DNS entry to the default value (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server shutdown Shutdown a server ### Synopsis Shuts down a Server gracefully by sending an ACPI shutdown request. The Server operating system must support ACPI and react to the request, otherwise the Server will not shut down. Use the --wait flag to wait for the Server to shut down before returning. ``` hcloud server shutdown [options] <server> ``` ### Options ``` -h, --help help for shutdown --wait Wait for the Server to shut down before exiting (true, false) --wait-timeout duration Timeout for waiting for off state after shutdown (default 30s) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server ssh Spawn an SSH connection for the Server ``` hcloud server ssh [options] <server> [--] [ssh options] [command [argument...]] ``` ### Options ``` -h, --help help for ssh --ipv6 Establish SSH connection to IPv6 address (true, false) -p, --port int Port for SSH connection (default 22) -u, --user string Username for SSH connection (default "root") ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers --- ## hcloud server update Update a Server ``` hcloud server update [options] <server> ``` ### Options ``` -h, --help help for update --name string Server name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud server](hcloud_server.md) - Manage Servers -
README.md 4 KB
## hcloud server Manage Servers ### Options ``` -h, --help help for server ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud server add-label](hcloud_server_add-label.md) - Add a label to a Server * [hcloud server add-to-placement-group](hcloud_server_add-to-placement-group.md) - Add a Server to a Placement Group * [hcloud server attach-iso](hcloud_server_attach-iso.md) - Attach an ISO to a server * [hcloud server attach-to-network](hcloud_server_attach-to-network.md) - Attach a Server to a Network * [hcloud server change-alias-ips](hcloud_server_change-alias-ips.md) - Change a server's alias IPs in a Network * [hcloud server change-type](hcloud_server_change-type.md) - Change type of a server * [hcloud server create](hcloud_server_create.md) - Create a Server * [hcloud server create-image](hcloud_server_create-image.md) - Create an Image from a Server * [hcloud server delete](hcloud_server_delete.md) - Delete a server * [hcloud server describe](hcloud_server_describe.md) - Describe a Server * [hcloud server detach-from-network](hcloud_server_detach-from-network.md) - Detach a Server from a Network * [hcloud server detach-iso](hcloud_server_detach-iso.md) - Detach an ISO from a Server * [hcloud server disable-backup](hcloud_server_disable-backup.md) - Disable backup for a server * [hcloud server disable-protection](hcloud_server_disable-protection.md) - Disable resource protection for a Server * [hcloud server disable-rescue](hcloud_server_disable-rescue.md) - Disable rescue for a server * [hcloud server enable-backup](hcloud_server_enable-backup.md) - Enable backup for a server * [hcloud server enable-protection](hcloud_server_enable-protection.md) - Enable resource protection for a Server * [hcloud server enable-rescue](hcloud_server_enable-rescue.md) - Enable rescue for a server * [hcloud server ip](hcloud_server_ip.md) - Print a server's IP address * [hcloud server list](hcloud_server_list.md) - List Servers * [hcloud server metrics](hcloud_server_metrics.md) - [ALPHA] Metrics from a Server * [hcloud server poweroff](hcloud_server_poweroff.md) - Poweroff a Server * [hcloud server poweron](hcloud_server_poweron.md) - Poweron a server * [hcloud server reboot](hcloud_server_reboot.md) - Reboot a server * [hcloud server rebuild](hcloud_server_rebuild.md) - Rebuild a server * [hcloud server remove-from-placement-group](hcloud_server_remove-from-placement-group.md) - Removes a Server from a Placement Group * [hcloud server remove-label](hcloud_server_remove-label.md) - Remove a label from a Server * [hcloud server request-console](hcloud_server_request-console.md) - Request a WebSocket VNC console for a Server * [hcloud server reset](hcloud_server_reset.md) - Reset a Server * [hcloud server reset-password](hcloud_server_reset-password.md) - Reset the root password of a Server * [hcloud server set-rdns](hcloud_server_set-rdns.md) - Change reverse DNS of a Server * [hcloud server shutdown](hcloud_server_shutdown.md) - Shutdown a server * [hcloud server ssh](hcloud_server_ssh.md) - Spawn an SSH connection for the Server * [hcloud server update](hcloud_server_update.md) - Update a Server
-
-
ssh-key
-
commands.md 8.8 KB
## hcloud ssh-key add-label Add a label to an SSH Key ``` hcloud ssh-key add-label [--overwrite] <ssh-key> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key create Create an SSH Key ``` hcloud ssh-key create [options] --name <name> (--public-key <key> | --public-key-from-file <file>) ``` ### Options ``` -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Key name (required) -o, --output stringArray output options: json|yaml --public-key string Public key --public-key-from-file string Path to file containing public key ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key delete Delete an SSH Key ``` hcloud ssh-key delete <ssh-key>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key describe Describe an SSH Key ``` hcloud ssh-key describe [options] <ssh-key> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key list List SSH Keys ### Synopsis Displays a list of SSH Keys. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - fingerprint - id - labels - name - public_key ``` hcloud ssh-key list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key remove-label Remove a label from an SSH Key ``` hcloud ssh-key remove-label <ssh-key> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys --- ## hcloud ssh-key update Update an SSH Key ``` hcloud ssh-key update [options] <ssh-key> ``` ### Options ``` -h, --help help for update --name string SSH Key name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud ssh-key](hcloud_ssh-key.md) - Manage SSH Keys -
README.md 1.5 KB
## hcloud ssh-key Manage SSH Keys ### Options ``` -h, --help help for ssh-key ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud ssh-key add-label](hcloud_ssh-key_add-label.md) - Add a label to an SSH Key * [hcloud ssh-key create](hcloud_ssh-key_create.md) - Create an SSH Key * [hcloud ssh-key delete](hcloud_ssh-key_delete.md) - Delete an SSH Key * [hcloud ssh-key describe](hcloud_ssh-key_describe.md) - Describe an SSH Key * [hcloud ssh-key list](hcloud_ssh-key_list.md) - List SSH Keys * [hcloud ssh-key remove-label](hcloud_ssh-key_remove-label.md) - Remove a label from an SSH Key * [hcloud ssh-key update](hcloud_ssh-key_update.md) - Update an SSH Key
-
-
storage-box
-
commands.md 47.3 KB
## hcloud storage-box add-label Add a label to a Storage Box ``` hcloud storage-box add-label [--overwrite] <storage-box> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box change-type Change type of a Storage Box ### Synopsis Requests a Storage Box to be upgraded or downgraded to another Storage Box Type. Please note that it is not possible to downgrade to a Storage Box Type that offers less disk space than you are currently using. ``` hcloud storage-box change-type <storage-box> <storage-box-type> ``` ### Options ``` -h, --help help for change-type ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box create Create a new Storage Box ``` hcloud storage-box create [options] --name <name> --type <type> --location <location> --password <password> ``` ### Options ``` --enable-protection strings Enable protection (delete) (default: none) --enable-samba Whether the Samba subsystem should be enabled (true, false) --enable-ssh Whether the SSH subsystem should be enabled (true, false) --enable-webdav Whether the WebDAV subsystem should be enabled (true, false) --enable-zfs Whether the ZFS Snapshot folder should be visible (true, false) -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --location string Location (ID or name) (required) --name string Storage Box name (required) -o, --output stringArray output options: json|yaml --password string The password that will be set for this Storage Box (required) --reachable-externally Whether the Storage Box should be accessible from outside the Hetzner network (true, false) --ssh-key stringArray SSH public keys in OpenSSH format or as the ID or name of an existing SSH key --type string Storage Box Type (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box delete Delete a Storage Box ``` hcloud storage-box delete <storage-box>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box describe Describe a Storage Box ``` hcloud storage-box describe [options] <storage-box> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box disable-protection Disable resource protection for a Storage Box ``` hcloud storage-box disable-protection <storage-box> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box disable-snapshot-plan Disable automatic snapshots for a Storage Box ``` hcloud storage-box disable-snapshot-plan <storage-box> ``` ### Options ``` -h, --help help for disable-snapshot-plan ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box enable-protection Enable resource protection for a Storage Box ``` hcloud storage-box enable-protection <storage-box> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box enable-snapshot-plan Enable automatic snapshots for a Storage Box ### Synopsis Enable automatic snapshots for a Storage Box Allowed values for --day-of-week are: - Sunday, Sun, 0, 7 - Monday, Mon, 1 - Tuesday, Tue, 2 - Wednesday, Wed, 3 - Thursday, Thu, 4 - Friday, Fri, 5 - Saturday, Sat, 6 ``` hcloud storage-box enable-snapshot-plan [options] <storage-box> ``` ### Options ``` --day-of-month int Day of the month the Snapshot Plan should be executed on. Not specified means every day --day-of-week string Day of the week the Snapshot Plan should be executed on. Not specified means every day -h, --help help for enable-snapshot-plan --hour int Hour the Snapshot Plan should be executed on (UTC) --max-snapshots int Maximum amount of Snapshots that should be created by this Snapshot Plan --minute int Minute the Snapshot Plan should be executed on (UTC) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box folders List folders of a Storage Box ``` hcloud storage-box folders <storage-box> ``` ### Options ``` -h, --help help for folders -o, --output stringArray output options: json|yaml --path string Relative path for which the listing is to be made ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box list List Storage Boxes ### Synopsis Displays a list of Storage Boxes. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - id - labels - location - name - server - size - status - system - type - username ``` hcloud storage-box list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box remove-label Remove a label from a Storage Box ``` hcloud storage-box remove-label <storage-box> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box reset-password Reset the password of a Storage Box ``` hcloud storage-box reset-password --password <password> <storage-box> ``` ### Options ``` -h, --help help for reset-password --password string New password for the Storage Box ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box rollback-snapshot Rolls back the Storage Box to the given Snapshot ``` hcloud storage-box rollback-snapshot --snapshot <snapshot> <storage-box> ``` ### Options ``` -h, --help help for rollback-snapshot --snapshot string The name or ID of the snapshot to roll back to ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box snapshot Manage Storage Box Snapshots ### Options ``` -h, --help help for snapshot ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes * [hcloud storage-box snapshot add-label](hcloud_storage-box_snapshot_add-label.md) - Add a label to a Storage Box Snapshot * [hcloud storage-box snapshot create](hcloud_storage-box_snapshot_create.md) - Create a Storage Box Snapshot * [hcloud storage-box snapshot delete](hcloud_storage-box_snapshot_delete.md) - Delete a Storage Box Snapshot * [hcloud storage-box snapshot describe](hcloud_storage-box_snapshot_describe.md) - Describe a Storage Box Snapshot * [hcloud storage-box snapshot list](hcloud_storage-box_snapshot_list.md) - List Storage Box Snapshots * [hcloud storage-box snapshot remove-label](hcloud_storage-box_snapshot_remove-label.md) - Remove a label from a Storage Box Snapshot * [hcloud storage-box snapshot update](hcloud_storage-box_snapshot_update.md) - Update a Storage Box Snapshot --- ## hcloud storage-box snapshot add-label Add a label to a Storage Box Snapshot ``` hcloud storage-box snapshot add-label [--overwrite] <storage-box> <snapshot> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot create Create a Storage Box Snapshot ``` hcloud storage-box snapshot create [--description <description>] <storage-box> ``` ### Options ``` --description string Description of the Storage Box Snapshot -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) -o, --output stringArray output options: json|yaml ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot delete Delete a Storage Box Snapshot ``` hcloud storage-box snapshot delete <storage-box> <snapshot>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot describe Describe a Storage Box Snapshot ``` hcloud storage-box snapshot describe [options] <storage-box> <snapshot> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot list List Storage Box Snapshots ### Synopsis Displays a list of Storage Box Snapshots. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - description - id - is_automatic - labels - name - size - size_filesystem ``` hcloud storage-box snapshot list [options] <storage-box> ``` ### Options ``` --automatic Only show automatic snapshots (true, false) -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot remove-label Remove a label from a Storage Box Snapshot ``` hcloud storage-box snapshot remove-label <storage-box> <snapshot> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box snapshot update Update a Storage Box Snapshot ``` hcloud storage-box snapshot update [options] <storage-box> <snapshot> ``` ### Options ``` --description string Description of the Storage Box Snapshot -h, --help help for update ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots --- ## hcloud storage-box subaccount Manage Storage Box Subaccounts ### Options ``` -h, --help help for subaccount ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes * [hcloud storage-box subaccount change-home-directory](hcloud_storage-box_subaccount_change-home-directory.md) - Update access settings of the Storage Box Subaccount * [hcloud storage-box subaccount create](hcloud_storage-box_subaccount_create.md) - Create a Storage Box Subaccount * [hcloud storage-box subaccount delete](hcloud_storage-box_subaccount_delete.md) - Delete a Storage Box Subaccount * [hcloud storage-box subaccount describe](hcloud_storage-box_subaccount_describe.md) - Describe a Storage Box Subaccount * [hcloud storage-box subaccount list](hcloud_storage-box_subaccount_list.md) - List Storage Box Subaccounts * [hcloud storage-box subaccount reset-password](hcloud_storage-box_subaccount_reset-password.md) - Reset the password of a Storage Box Subaccount * [hcloud storage-box subaccount update](hcloud_storage-box_subaccount_update.md) - Update a Storage Box Subaccount * [hcloud storage-box subaccount update-access-settings](hcloud_storage-box_subaccount_update-access-settings.md) - Update access settings of the Storage Box Subaccount --- ## hcloud storage-box subaccount change-home-directory Update access settings of the Storage Box Subaccount ``` hcloud storage-box subaccount change-home-directory --home-directory <home-directory> <storage-box> <subaccount> ``` ### Options ``` -h, --help help for change-home-directory --home-directory string Home directory of the Subaccount. Will be created if it doesn't exist yet ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount create Create a Storage Box Subaccount ``` hcloud storage-box subaccount create [options] --password <password> --home-directory <home-directory> <storage-box> ``` ### Options ``` --description string Description for the Subaccount --enable-samba Whether the Samba subsystem should be enabled (true, false) --enable-ssh Whether the SSH subsystem should be enabled (true, false) --enable-webdav Whether the WebDAV subsystem should be enabled (true, false) -h, --help help for create --home-directory string Home directory for the Subaccount (required) --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --name string Name for the Subaccount -o, --output stringArray output options: json|yaml --password string Password for the Subaccount (required) --reachable-externally Whether the Storage Box should be accessible from outside the Hetzner network (true, false) --readonly Whether the Subaccount should be read-only (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount delete Delete a Storage Box Subaccount ``` hcloud storage-box subaccount delete <storage-box> <subaccount>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount describe Describe a Storage Box Subaccount ``` hcloud storage-box subaccount describe [options] <storage-box> <subaccount> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount list List Storage Box Subaccounts ### Synopsis Displays a list of Storage Box Subaccounts. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - description - home_directory - id - labels - name - server - username ``` hcloud storage-box subaccount list [options] <storage-box> ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount reset-password Reset the password of a Storage Box Subaccount ``` hcloud storage-box subaccount reset-password --password <password> <storage-box> <subaccount> ``` ### Options ``` -h, --help help for reset-password --password string New password for the Storage Box Subaccount ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount update-access-settings Update access settings of the Storage Box Subaccount ``` hcloud storage-box subaccount update-access-settings [options] <storage-box> <subaccount> ``` ### Options ``` --enable-samba Whether the Samba subsystem should be enabled (true, false) --enable-ssh Whether the SSH subsystem should be enabled (true, false) --enable-webdav Whether the WebDAV subsystem should be enabled (true, false) -h, --help help for update-access-settings --reachable-externally Whether the Storage Box should be accessible from outside the Hetzner network (true, false) --readonly Whether the Subaccount should be read-only (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box subaccount update Update a Storage Box Subaccount ``` hcloud storage-box subaccount update [options] <storage-box> <subaccount> ``` ### Options ``` --description string Description of the Storage Box Subaccount -h, --help help for update --name string Name of the Storage Box Subaccount ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts --- ## hcloud storage-box update-access-settings Update access settings of the primary Storage Box account ``` hcloud storage-box update-access-settings [options] <storage-box> ``` ### Options ``` --enable-samba Whether the Samba subsystem should be enabled (true, false) --enable-ssh Whether the SSH subsystem should be enabled (true, false) --enable-webdav Whether the WebDAV subsystem should be enabled (true, false) --enable-zfs Whether the ZFS Snapshot folder should be visible (true, false) -h, --help help for update-access-settings --reachable-externally Whether the Storage Box should be accessible from outside the Hetzner network (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes --- ## hcloud storage-box update Update a Storage Box ``` hcloud storage-box update [options] <storage-box> ``` ### Options ``` -h, --help help for update --name string Storage Box name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud storage-box](hcloud_storage-box.md) - Manage Storage Boxes -
README.md 2.9 KB
## hcloud storage-box Manage Storage Boxes ### Options ``` -h, --help help for storage-box ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud storage-box add-label](hcloud_storage-box_add-label.md) - Add a label to a Storage Box * [hcloud storage-box change-type](hcloud_storage-box_change-type.md) - Change type of a Storage Box * [hcloud storage-box create](hcloud_storage-box_create.md) - Create a new Storage Box * [hcloud storage-box delete](hcloud_storage-box_delete.md) - Delete a Storage Box * [hcloud storage-box describe](hcloud_storage-box_describe.md) - Describe a Storage Box * [hcloud storage-box disable-protection](hcloud_storage-box_disable-protection.md) - Disable resource protection for a Storage Box * [hcloud storage-box disable-snapshot-plan](hcloud_storage-box_disable-snapshot-plan.md) - Disable automatic snapshots for a Storage Box * [hcloud storage-box enable-protection](hcloud_storage-box_enable-protection.md) - Enable resource protection for a Storage Box * [hcloud storage-box enable-snapshot-plan](hcloud_storage-box_enable-snapshot-plan.md) - Enable automatic snapshots for a Storage Box * [hcloud storage-box folders](hcloud_storage-box_folders.md) - List folders of a Storage Box * [hcloud storage-box list](hcloud_storage-box_list.md) - List Storage Boxes * [hcloud storage-box remove-label](hcloud_storage-box_remove-label.md) - Remove a label from a Storage Box * [hcloud storage-box reset-password](hcloud_storage-box_reset-password.md) - Reset the password of a Storage Box * [hcloud storage-box rollback-snapshot](hcloud_storage-box_rollback-snapshot.md) - Rolls back the Storage Box to the given Snapshot * [hcloud storage-box snapshot](hcloud_storage-box_snapshot.md) - Manage Storage Box Snapshots * [hcloud storage-box subaccount](hcloud_storage-box_subaccount.md) - Manage Storage Box Subaccounts * [hcloud storage-box update](hcloud_storage-box_update.md) - Update a Storage Box * [hcloud storage-box update-access-settings](hcloud_storage-box_update-access-settings.md) - Update access settings of the primary Storage Box account
-
-
volume
-
commands.md 14.7 KB
## hcloud volume add-label Add a label to a Volume ``` hcloud volume add-label [--overwrite] <volume> <label>... ``` ### Options ``` -h, --help help for add-label -o, --overwrite Overwrite label if it exists already (true, false) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume attach Attach a Volume to a Server ``` hcloud volume attach [--automount] --server <server> <volume> ``` ### Options ``` --automount Automount Volume after attach (true, false) -h, --help help for attach --server string Server (ID or name) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume create Create a Volume ``` hcloud volume create [options] --name <name> --size <size> ``` ### Options ``` --automount Automount Volume after attach (Server must be provided) (true, false) --enable-protection strings Enable protection (delete) (default: none) --format string Format Volume after creation (ext4 or xfs) -h, --help help for create --label stringToString User-defined labels ('key=value') (can be specified multiple times) (default []) --location string Location (ID or name) --name string Volume name (required) -o, --output stringArray output options: json|yaml --server string Server (ID or name) --size int Size (GB) (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume delete Delete a Volume ``` hcloud volume delete <volume>... ``` ### Options ``` -h, --help help for delete ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume describe Describe a Volume ``` hcloud volume describe [options] <volume> ``` ### Options ``` -h, --help help for describe -o, --output stringArray output options: json|yaml|format ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume detach Detach a Volume ``` hcloud volume detach <volume> ``` ### Options ``` -h, --help help for detach ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume disable-protection Disable resource protection for a Volume ``` hcloud volume disable-protection <volume> delete ``` ### Options ``` -h, --help help for disable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume enable-protection Enable resource protection for a Volume ``` hcloud volume enable-protection <volume> delete ``` ### Options ``` -h, --help help for enable-protection ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume list List Volumes ### Synopsis Displays a list of Volumes. Output can be controlled with the -o flag. Use -o noheader to suppress the table header. Displayed columns and their order can be set with -o columns=age,created (see available columns below). Columns: - age - created - id - labels - linux_device - location - name - protection - server - size - status ``` hcloud volume list [options] ``` ### Options ``` -h, --help help for list -o, --output stringArray output options: noheader|columns=...|json|yaml -l, --selector string Selector to filter by labels -s, --sort strings Determine the sorting of the result ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume remove-label Remove a label from a Volume ``` hcloud volume remove-label <volume> (--all | <label>...) ``` ### Options ``` -a, --all Remove all labels -h, --help help for remove-label ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume resize Resize a volume ``` hcloud volume resize --size <size> <volume> ``` ### Options ``` -h, --help help for resize --size int New size (GB) of the Volume (required) ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes --- ## hcloud volume update Update a Volume ``` hcloud volume update [options] <volume> ``` ### Options ``` -h, --help help for update --name string Volume name ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud volume](hcloud_volume.md) - Manage Volumes -
README.md 1.9 KB
## hcloud volume Manage Volumes ### Options ``` -h, --help help for volume ``` ### Options inherited from parent commands ``` --config string Config file path (default "~/.config/hcloud/cli.toml") --context string Currently active context --debug Enable debug output --debug-file string File to write debug output to --endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1") --hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1") --http-timeout duration Timeout for HTTP requests (default 0 = no timeout) --no-experimental-warnings If true, experimental warnings are not shown --poll-interval duration Interval at which to poll information, for example action progress (default 500ms) --quiet If true, only print error messages ``` ### SEE ALSO * [hcloud](hcloud.md) - Hetzner Cloud CLI * [hcloud volume add-label](hcloud_volume_add-label.md) - Add a label to a Volume * [hcloud volume attach](hcloud_volume_attach.md) - Attach a Volume to a Server * [hcloud volume create](hcloud_volume_create.md) - Create a Volume * [hcloud volume delete](hcloud_volume_delete.md) - Delete a Volume * [hcloud volume describe](hcloud_volume_describe.md) - Describe a Volume * [hcloud volume detach](hcloud_volume_detach.md) - Detach a Volume * [hcloud volume disable-protection](hcloud_volume_disable-protection.md) - Disable resource protection for a Volume * [hcloud volume enable-protection](hcloud_volume_enable-protection.md) - Enable resource protection for a Volume * [hcloud volume list](hcloud_volume_list.md) - List Volumes * [hcloud volume remove-label](hcloud_volume_remove-label.md) - Remove a label from a Volume * [hcloud volume resize](hcloud_volume_resize.md) - Resize a volume * [hcloud volume update](hcloud_volume_update.md) - Update a Volume
-
-
-
SKILL.md 8.2 KB
--- name: hetzner-deploy description: 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. references: - server - network - firewall - getting-started license: MIT --- # Hetzner Cloud CLI Skill Skill for provisioning and managing infrastructure on Hetzner Cloud using the `hcloud` CLI. Use the decision trees below to find the right command group, then load detailed references. Your knowledge of Hetzner Cloud pricing, server types, locations, and API behavior may be outdated. **Prefer retrieval over pre-training** when citing specific numbers, available types, or configuration options. The reference files alongside this skill are starting points extracted from the official CLI docs. ## Authentication The CLI authenticates via API token. Set the `HCLOUD_TOKEN` environment variable or create a named context: ```bash # Stateless (CI, scripting, agent use) export HCLOUD_TOKEN="your-api-token" # Named context (interactive use) hcloud context create my-project ``` Generate tokens at https://console.hetzner.cloud under your project's Security > API Tokens. ## Installation ```bash # macOS / Linux (Homebrew) brew install hcloud # Linux (binary) curl -sSLO https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz sudo tar -C /usr/local/bin --no-same-owner -xzf hcloud-linux-amd64.tar.gz hcloud # Docker docker run --rm -e HCLOUD_TOKEN="$HCLOUD_TOKEN" hetznercloud/cli:latest <command> ``` ## Quick Decision Trees ### "I need compute" ``` Need a server? ├─ Create a new server → hcloud server create --name <n> --type <t> --image <img> ├─ With cloud-init user data → add --user-data-from-file <path> ├─ With firewall + network → add --firewall <fw> --network <net> ├─ List available types → hcloud server-type list ├─ List available images → hcloud image list ├─ SSH into server → hcloud server ssh <name> ├─ Create snapshot → hcloud server create-image --type snapshot <name> ├─ Rescue mode → hcloud server enable-rescue <name> └─ Delete server → hcloud server delete <name> ``` ### "I need networking" ``` Need networking? ├─ Private network (VPC) → hcloud network create --name <n> --ip-range <cidr> │ ├─ Add subnet → hcloud network add-subnet --network <n> --type cloud --network-zone <z> --ip-range <cidr> │ └─ Attach server → hcloud server attach-to-network --network <n> --server <s> ├─ Firewall → hcloud firewall create --name <n> --rules-file <json> │ ├─ Apply to server → hcloud firewall apply-to-resource --firewall <n> --type server --server <s> │ └─ Replace rules → hcloud firewall replace-rules --rules-file <json> <name> ├─ Load balancer → hcloud load-balancer create --name <n> --type <t> --location <loc> │ ├─ Add target → hcloud load-balancer add-target --server <s> <lb> │ └─ Add service → hcloud load-balancer add-service --protocol <p> --listen-port <port> <lb> ├─ Floating IP → hcloud floating-ip create --type ipv4 --home-location <loc> │ └─ Assign → hcloud floating-ip assign <ip> --server <s> └─ Primary IP → hcloud primary-ip create --name <n> --type ipv4 --datacenter <dc> ``` ### "I need storage" ``` Need storage? ├─ Block volume → hcloud volume create --name <n> --size <gb> --server <s> --automount --format ext4 │ ├─ Resize → hcloud volume resize --size <gb> <name> │ └─ Detach → hcloud volume detach <name> └─ Storage Box (managed NFS/CIFS/SCP) → hcloud storage-box create --name <n> --type <t> --location <loc> ├─ Subaccounts → hcloud storage-box subaccount create <box> └─ Snapshots → hcloud storage-box snapshot create <box> ``` ### "I need DNS" ``` Need DNS? ├─ Create zone → hcloud zone create --name <domain> ├─ Add records → hcloud zone add-records --zone <z> --type A --name <n> --value <ip> ├─ Set full record set → hcloud zone set-records --zone <z> --type A --name <n> --value <ip1> --value <ip2> ├─ Import zone file → hcloud zone import-zonefile --zone <z> <file> ├─ Export zone file → hcloud zone export-zonefile <zone> └─ Manage individual RRSets → hcloud zone rrset list <zone> ``` ### "I need info" ``` Need reference data? ├─ Server types + pricing → hcloud server-type list / describe <type> ├─ Locations → hcloud location list / describe <loc> ├─ Datacenters → hcloud datacenter list / describe <dc> ├─ Available images → hcloud image list ├─ ISO images → hcloud iso list ├─ Load balancer types → hcloud load-balancer-type list └─ Storage box types → hcloud storage-box-type list ``` ### "I need to configure the CLI" ``` Need CLI config? ├─ Create context → hcloud context create <name> ├─ Switch context → hcloud context use <name> ├─ Set default SSH key → hcloud config set default-ssh-keys <key> ├─ View config → hcloud config list └─ Shell completion → hcloud completion bash/zsh/fish ``` ## Common Workflows ### Quick server deploy ```bash # Upload SSH key, create server, connect hcloud ssh-key create --name deploy-key --public-key-from-file ~/.ssh/id_ed25519.pub hcloud server create --name web-1 --type cpx21 --image ubuntu-24.04 --ssh-key deploy-key --location fsn1 hcloud server ssh web-1 ``` ### Full stack with network + firewall ```bash # Network hcloud network create --name prod-net --ip-range 10.0.0.0/16 hcloud network add-subnet --network prod-net --type cloud --network-zone eu-central --ip-range 10.0.1.0/24 # Firewall (allow SSH + HTTP/S) cat > rules.json << 'EOF' [ {"direction":"in","protocol":"tcp","port":"22","source_ips":["0.0.0.0/0","::/0"]}, {"direction":"in","protocol":"tcp","port":"80","source_ips":["0.0.0.0/0","::/0"]}, {"direction":"in","protocol":"tcp","port":"443","source_ips":["0.0.0.0/0","::/0"]} ] EOF hcloud firewall create --name web-fw --rules-file rules.json # Server with network + firewall hcloud server create --name app-1 --type cpx21 --image ubuntu-24.04 \ --ssh-key deploy-key --network prod-net --firewall web-fw --location fsn1 # Load balancer hcloud load-balancer create --name web-lb --type lb11 --location fsn1 hcloud load-balancer attach-to-network --network prod-net web-lb hcloud load-balancer add-target --server app-1 web-lb hcloud load-balancer add-service --protocol tcp --listen-port 80 --destination-port 80 web-lb ``` ## Output Formats All `describe`, `list`, and `create` commands support structured output for scripting and agent use: ```bash hcloud server list --output json # JSON array hcloud server describe my-srv --output yaml # YAML hcloud server describe my-srv --output format='{{.ServerType.Cores}}' # Go template hcloud server list --output columns=id,name,status # Custom table columns ``` ## Resource Index ### Compute | Resource | Reference | |----------|-----------| | Server | `references/server/` | | Server Types | `references/info/` | ### Networking | Resource | Reference | |----------|-----------| | Network (VPC) | `references/network/` | | Firewall | `references/firewall/` | | Load Balancer | `references/load-balancer/` | | Floating IP | `references/floating-ip/` | | Primary IP | `references/primary-ip/` | ### Storage | Resource | Reference | |----------|-----------| | Volume | `references/volume/` | | Storage Box | `references/storage-box/` | ### DNS | Resource | Reference | |----------|-----------| | Zone & Records | `references/dns/` | ### Security & Access | Resource | Reference | |----------|-----------| | SSH Key | `references/ssh-key/` | | Certificate | `references/certificate/` | | Image | `references/image/` | | Placement Group | `references/placement-group/` | ### Reference Data | Resource | Reference | |----------|-----------| | Server Types, LB Types, Storage Box Types, Datacenters, Locations, ISOs | `references/info/` | ### CLI Configuration | Resource | Reference | |----------|-----------| | Config, Context, Completion | `references/config/` | | All Resources | `references/all/` | ### Getting Started | Resource | Reference | |----------|-----------| | Setup, Server Tutorial, Output Options, Configuration | `references/getting-started/` |
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.