Skip to content

GitHub action to install the Hetzner Cloud CLI.

License

Notifications You must be signed in to change notification settings

hetznercloud/setup-hcloud

Folders and files

NameName
Last commit message
Last commit date
Jan 13, 2025
Feb 4, 2025
Jan 12, 2024
Jan 11, 2024
Jan 11, 2024
Feb 12, 2024
Mar 25, 2025
Jan 12, 2024
Jan 11, 2024
Oct 21, 2024
Jan 11, 2024
Apr 16, 2024
Jan 11, 2024
Feb 4, 2025
Jan 11, 2024
Mar 25, 2025
Mar 25, 2025
Feb 2, 2024
Jan 11, 2024
Jan 11, 2024

Repository files navigation

setup-hcloud

CI Codecov

This action installs the Hetzner Cloud CLI in your PATH.

Usage

The environment variable HCLOUD_TOKEN is required for hcloud to work properly. See the hcloud getting started docs for details.

Setup the latest version:

steps:
  - uses: hetznercloud/setup-hcloud@v1

  - run: hcloud server-type list
    env:
      HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

Setup a specific version:

steps:
  - uses: hetznercloud/setup-hcloud@v1
    with:
      hcloud-version: v1.41.1

  - run: hcloud server-type list
    env:
      HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

Inputs

  • hcloud-version (Optional): Version of Hetzner Cloud CLI to install. Using latest will install the latest version of hcloud.
  • github-token (Optional): A Personal Access Token or the Github Token to access the GitHub API. If none provided it will use the default Github Token.

Outputs

  • hcloud-version: Version of the Hetzner Cloud CLI that was installed.

License

The scripts and documentation in this project are released under the MIT License