Skip to content

Instantly share code, notes, and snippets.

@filviu
Created October 11, 2021 09:17
Show Gist options
  • Save filviu/28cab74857264ab6a765452b4996c086 to your computer and use it in GitHub Desktop.
Save filviu/28cab74857264ab6a765452b4996c086 to your computer and use it in GitHub Desktop.
update hetzner cli to latest version
#!/bin/bash
hcloud version
temp_dir=$(mktemp -d)
cd $temp_dir
wget https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz
tar -xf hcloud-linux-amd64.tar.gz
mv hcloud ~/bin/
cd -
rm -rf $temp_dir
hcloud version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment