helm dependency update: Command Reference for CI/CD
Resolve and vendor a chart subchart dependencies.
helm dependency update reads the dependencies in Chart.yaml, downloads matching subcharts into charts/, and refreshes Chart.lock. This reference distinguishes it from dependency build and shows where it fits in a CI build.
Common flags and usage
- dependency update <chart>: resolve, download subcharts, rewrite Chart.lock
- dependency build <chart>: download exactly what Chart.lock pins (reproducible)
- dependency list <chart>: show declared dependencies and their status
- --skip-refresh: do not refresh repo indexes first
- Requires the dependency repos to be added first
Example
shell
helm repo add bitnami https://charts.bitnami.com/bitnami --force-update
helm repo update
helm dependency update ./charts/web # writes charts/ and Chart.lockIn CI
Use dependency build (not update) when Chart.lock is committed, so CI installs exactly the pinned versions reproducibly; update re-resolves and can drift. Either way, add and update the dependency repos first, or resolution fails with "no repository definition".
Key takeaways
- update re-resolves and rewrites Chart.lock; build installs the pinned lock.
- For reproducible CI with a committed lock, prefer dependency build.
- Add the dependency repos before resolving, or it fails.
Related guides
Helm Cheat Sheet: Charts, Releases & UpgradesA Helm cheat sheet - install, upgrade, rollback, template, repo, and dependency commands for managing Kuberne…
helm repo add: Command Reference for CI/CDReference for helm repo add: register a chart repository, authenticate private repos, force-update an existin…
helm repo update: Command Reference for CI/CDReference for helm repo update: refresh local chart-repo indexes so installs resolve the latest versions, tar…
helm install: Command Reference for CI/CDReference for helm install: install a chart as a release, set values, and use --wait and --atomic so a failed…