I didn't see an accepted answer and of course arrived here via Google and Reddit, so posting here.
Confirmed working:
➜ helm install argocd argo/argo-cd --version="1.6.2" -f argocd-helm-values.yaml -n argocd
...
➜ helm list --all-namespaces
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
argocd argocd 1 2020-08-22 16:35:37.516098 +0700 +07 deployed argo-cd-1.6.2 1.3.6
It seems the placement of --version
matters. Placing it after the -n
(namespace) caused an error. However placing it before/after the -f
worked fine.
Quotes didn't matter, both the commands below worked fine:
➜ helm install argocd argo/argo-cd -f argocd-helm-values.yaml --version=1.6.2 -n argocd
➜ helm install argocd argo/argo-cd --version="1.6.2" -f argocd-helm-values.yaml -n argocd
Finally, it seems that the equal sign is optional. Both the commands below also worked:
➜ helm install argocd argo/argo-cd -f argocd-helm-values.yaml --version=1.6.2 -n argocd
➜ helm install argocd argo/argo-cd -f argocd-helm-values.yaml --version 1.6.2 -n argocd
TL;DR
helm install <RELEASE_NAME> <REPO>/<CHART> --version <VERSION>
eg.
helm install my_release repo/app --version 1.0.0