helm error Error This command needs 2 arguments release name, chart path
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.
Introduction
The Helm error Error: this command needs 2 arguments: release name, chart path means you ran helm install or helm upgrade without providing both required arguments. Helm 3 changed the syntax from Helm 2. The release name is now required as the first argument (it was auto-generated in Helm 2). The correct format is helm install <release-name> <chart>.
The Error
Correct Syntax
The two required arguments:
- Release name: A unique name for this deployment (e.g.,
my-release,prod-api) - Chart: A path to a local chart directory, a packaged chart
.tgz, or a chart from a repo (repo/chart)
Auto-Generate Release Name
If you do not want to pick a name, use --generate-name:
Helm 2 vs Helm 3 Syntax
If you are following a Helm 2 tutorial, the commands will not work with Helm 3. Remove --name and put the release name first.
helm upgrade Syntax
The same error applies to helm upgrade:
Using Charts from Repositories
Common Variations
Debugging Chart Path Issues
Managing Releases
Common Pitfalls
- Helm 2 tutorials: Old guides use
helm install --name my-release chart. In Helm 3, remove--nameand put the release name as the first argument:helm install my-release chart. - Quoting release names: Release names must match the regex
[a-z0-9]([-a-z0-9]*[a-z0-9])?. No uppercase, no underscores.my-releaseworks,My_Releasedoes not. - Chart path vs chart name:
helm install my-release nginxfails ifnginxis not a local directory. Usehelm install my-release bitnami/nginxfor repo charts, orhelm install my-release ./nginxfor local directories. - Forgetting
helm repo update: After adding a repo, runhelm repo updatebefore installing. Stale repo indexes cause "chart not found" errors. - Release name conflicts: Each release name must be unique within a namespace. Installing with an existing name fails. Use
helm upgrade --installto update if exists or create if new.
Summary
- Helm 3 requires two arguments:
helm install <release-name> <chart> - Use
--generate-nameto auto-generate a release name - Helm 2 syntax (
--name) does not work in Helm 3 helm upgradefollows the same pattern:helm upgrade <release-name> <chart>- Use
helm upgrade --installfor idempotent deployments - Validate charts with
helm lintandhelm showbefore installing
Related reading
- helm error when updating UPGRADE FAILED The order in patch list
- Helm export YAML files locally just use templating engine, do not send to Kubernetes
- Helm generate comma separated list
- Helm Grafana/Loki chart installation error. Rendered manifests contain a resource that already exists
- Helm install unknown flag --name
- helm list cannot list configmaps in the namespace kube-system
- Helm how to define .Release.Name value
- Helm Incompatible versions between client and server

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.