Skip to content

Instantly share code, notes, and snippets.

@filviu
Created July 19, 2021 10:03
Show Gist options
  • Save filviu/95517b27862f395724f0e6bb1ee4196a to your computer and use it in GitHub Desktop.
Save filviu/95517b27862f395724f0e6bb1ee4196a to your computer and use it in GitHub Desktop.
Update the hcloud cli binary to the 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