helm repo update: Command Reference for CI/CD
Refresh local repo indexes so Helm sees the latest charts.
helm repo update fetches the latest index for your registered repositories so install and dependency resolution pick up new chart versions. This reference covers it and where it belongs in a CI sequence.
Common flags and usage
- repo update: refresh the index for all registered repos
- repo update <name> [<name>...]: refresh only named repos
- --fail-on-repo-update-fail: fail if any repo refresh fails
- Run after repo add and before install or dependency update
- repo list shows what is currently registered
Example
shell
helm repo add bitnami https://charts.bitnami.com/bitnami --force-update
helm repo update bitnami
helm dependency update ./charts/webIn CI
A stale index resolves an old chart version; run repo update after adding repos and before any install or dependency build. Pass --fail-on-repo-update-fail so a transient repo outage fails the step loudly instead of silently using a cached index.
Key takeaways
- A stale index pins old chart versions; update before install.
- --fail-on-repo-update-fail surfaces a repo outage instead of hiding it.
- You can refresh a single repo by name for speed.
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 dependency update: Command Reference for CI/CDReference for helm dependency update: resolve and download subcharts into charts/, rebuild Chart.lock, the di…
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…