Get latest stable helm release

4/6/2018

Is there a shell command to get the latest stable helm release .

For kubernetes we have something like this

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl/bin/linux/amd64/kubectl)

-- ambikanair
kubernetes-helm
shell

4 Answers

6/24/2019

if in-case you use Dockerfile & Linux

RUN wget "https://storage.googleapis.com/kubernetes-helm/helm-$(wget -qO- https://github.com/kubernetes/helm/releases | sed -n '/Latest release<\/a>/,$p' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' |head -1)-linux-amd64.tar.gz"
-- Prashanth Sams
Source: StackOverflow

1/29/2020

For Linux, OSX, and Windows targets:

HELM_INSTALL_DIR=[‘desired path’]
USE_SUDO=[‘true’|’false’]
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

Other install options: Helm Install Documentation

Recommend migration away from V2.x as soon as you can.

-- javajon
Source: StackOverflow

4/6/2018

Try:

wget -qO- https://github.com/kubernetes/helm/releases | sed -n '/Latest release<\/a>/,$p' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' |head -1

Result:

v2.8.2
-- sergio
Source: StackOverflow

7/6/2018

And, for those without wget:

HVER=$(curl -sSL https://github.com/kubernetes/helm/releases | sed -n '/Latest release<\/a>/,$p' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1)

echo $HVER

Result (currently):

v2.9.1

To download the gz that contains the latest Helm executable:

Linux

curl -LO https://storage.googleapis.com/kubernetes-helm/helm-${HVER}-linux-amd64.tar.gz

OSX

curl -LO https://storage.googleapis.com/kubernetes-helm/helm-${HVER}-darwin-amd64.tar.gz

Windows (bash ell)

curl -LO https://storage.googleapis.com/kubernetes-helm/helm-${HVER}-windows-amd64.tar.gz
-- javajon
Source: StackOverflow