Commands
Assuming you have installed Helm as instructed on the previous page or from the official Helm website, here are the various commands you can execute:
Version
-
The following command will display build information such as the Helm version, Git commit hash, Git tree state, and Go version:
helm version
-
The following command will display Helm version with Git commit hash used during the build of this version:
helm version --short
-
The following commands allow you to customize the display of build information:
-
Displays only the Helm version:
helm version --template={{.Version}}
-
Displays only the Go version:
helm version --template={{.GoVersion}}
-
Displays only the Git commit hash:
helm version --template={{.GitCommit}}
-
Displays only the Git tree state:
helm version --template={{.GitTreeState}}
-
You can also display multiple pieces of build information using different formats, such as CSV or Key:Value etc., or combine other Linux commands to achieve the desired output:
helm version --template={{.Version}},{{.GoVersion}},{{.GitCommit}}
helm version --template="$(hostname) {{.Version}}:{{.GoVersion}}:{{.GitCommit}}"
-