凭据访问
Reads Hetzner Cloud tokens, config files, and environment credentials.
代理安全
hcloud controls Hetzner Cloud resources from local credentials.
Reads Hetzner Cloud tokens, config files, and environment credentials.
Can create, delete, and resize cloud servers, volumes, and networks.
Can deploy infrastructure used by application artifacts.
Gate mutating hcloud commands and token access.
Allow list/describe operations; require approval for writes, deletes, and token changes.
安装
brew install hcloudlocal Homebrew formula metadata
sudo port install hcloudMacPorts ports tree · devel/hcloud/Portfile · 来源: api.github.com
sudo apk add hcloudAlpine Linux edge package indexes · hcloud · 来源: dl-cdn.alpinelinux.org
sudo dnf install hcloudFedora Rawhide package metadata · hcloud · 来源: dl.fedoraproject.org
nix profile install nixpkgs#hcloudnixpkgs package indexes · pkgs/by-name/hc/hcloud/package.nix · 来源: api.github.com
sudo pacman -S hcloudArch Linux sync databases · hcloud · 来源: geo.mirror.pkgbuild.com
sudo zypper install hcloud-cliopenSUSE Tumbleweed package metadata · hcloud-cli · 来源: download.opensuse.org
scoop install main/hcloudScoop official bucket manifest trees · bucket/hcloud.json · 来源: api.github.com
winget install --id HetznerCloud.CLI -eWindows Package Manager source index · HetznerCloud.CLI · 来源: cdn.winget.microsoft.com
概览
Command-line interface for Hetzner Cloud
历史
hcloud is Hetzner Cloud's official command-line client. It wraps the Hetzner Cloud API in a scriptable CLI for servers, images, SSH keys, networks, firewalls, load balancers, volumes, primary IPs, locations, storage boxes, DNS zones, and related cloud resources.
Hetzner created the Go API client and CLI repositories in November 2017, then published the hcloud v1.0.0 release in January 2018. The CLI sits directly on the public Hetzner Cloud API, whose documentation describes HTTPS/JSON operations for cloud services and resources.
The project evolved from a compact server-management CLI into the main terminal surface for Hetzner Cloud. Its manual documents global options, context selection, endpoint overrides, debug output, and resource subcommands, while the setup guide documents binary, Go, Debian, RPM, Homebrew, Windows package, and Docker installation paths.
The configuration model grew around contexts: a named context stores an API token and preferences, while flags and environment variables can override config-file values. The documented default Unix config file is ~/.config/hcloud/cli.toml, and the token can also be supplied through HCLOUD_TOKEN for automation.
hcloud adoption follows Hetzner Cloud's appeal to developers and small infrastructure teams that want direct control from shell scripts, CI jobs, and local terminals. The package-manager footprint in the batch input spans Alpine, Homebrew, Fedora, MacPorts, Nix, Arch, Scoop, WinGet, and openSUSE naming, which reflects broad demand for a native client outside the web console.
The companion setup-hcloud GitHub Action shows a second adoption path: CI workflows install the CLI and pass HCLOUD_TOKEN to run resource commands during deployment. That made hcloud part of the same toolchain family as Terraform providers and cloud CLIs for other vendors, but with Hetzner-specific API coverage and output conventions.
A first-time user installs the binary, creates a context with hcloud context create, enters a project API token, and verifies access with a read-only command such as hcloud datacenter list. After that, commands such as hcloud server, hcloud firewall, hcloud network, hcloud ssh-key, and hcloud volume become shell-friendly API operations.
The config command documents the precedence order as flags, environment variables, context configuration, global configuration, and default values. That order is important for packaging and automation because the same installed CLI can be used interactively through cli.toml or non-interactively through HCLOUD_TOKEN and HCLOUD_CONTEXT.
hcloud is the kind of cloud CLI package maintainers like: a single Go binary with completions, man-page-style generated docs, release artifacts for multiple operating systems and architectures, and no daemon. The package is also operationally sensitive because it may read long-lived API tokens from its config file, so package quality and upgrade predictability matter.
For Homebrew users, the significance is practical: hcloud gives macOS and Linux shells first-class access to Hetzner Cloud resources without waiting for a language SDK or a Terraform run. Its existence as an official CLI also gives other tools a stable executable to call.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.config/hcloud/cli.tomlCredential-bearing paths to review before unattended agent runs.
~/.config/hcloud/cli.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hcloud | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/hetznercloud/cli
安装元数据
| 软件包键 | brew:hcloud |
|---|---|
| 版本 | 1.66.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hcloud |
| 主页 | https://github.com/hetznercloud/cli |
| 仓库 | https://github.com/hetznercloud/cli |
| 上游文档 | https://docs.hetzner.cloud/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/hetznercloud/cli/archive/refs/tags/v1.66.0.tar.gz |
| 最后更新 | 2026-06-24T19:02:31Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hcloud |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
hcloud
nix profile install nixpkgs#hcloudhcloud 1.62.2-r1
Command-line interface for Hetzner Cloud
https://github.com/hetznercloud/cli
sudo apk add hcloudhcloud-bash-completion 1.62.2-r1
Bash completions for hcloud
https://github.com/hetznercloud/cli
sudo apk add hcloud-bash-completionhcloud-fish-completion 1.62.2-r1
Fish completions for hcloud
https://github.com/hetznercloud/cli
sudo apk add hcloud-fish-completionhcloud-zsh-completion 1.62.2-r1
Zsh completions for hcloud
https://github.com/hetznercloud/cli
sudo apk add hcloud-zsh-completionhcloud 1.65.0-1.fc45
A command-line interface for Hetzner Cloud
https://github.com/hetznercloud/cli
sudo dnf install hcloudhcloud 1.65.0-1
CLI for Hetzner Cloud
https://github.com/hetznercloud/cli
sudo pacman -S hcloudhcloud-cli 1.65.0-1.1
A command-line interface for Hetzner Cloud
https://github.com/hetznercloud/cli
sudo zypper install hcloud-clihcloud
sudo port install hcloudmain/hcloud
scoop install main/hcloudHetznerCloud.CLI
winget install --id HetznerCloud.CLI -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.