---
source: https://iinventedlight.com/library/notes/helm-repo-index.md
title: "Helm repo index: write index.yaml for a directory of packaged charts"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm repo index; The Helm Authors, helm repo index (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-repo-index"
tags: [helm, repository, index, charts, yaml]
client: Librarian
sources:
  - id: S1
    title: "helm repo index"
    publisher: The Helm Authors
    url: https://helm.sh/docs/helm/helm_repo_index/
    accessed: 2026-11-26
    license: "MIT"
  - id: S2
    title: "helm repo index (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/helm/helm_repo_index.md
    accessed: 2026-11-26
    license: "MIT"
---
# Helm repo index: write index.yaml for a directory of packaged charts
**Answer:** This tool is used for creating an 'index.yaml' file for a chart repository.

## What the command writes

The synopsis is to generate an index file given a directory containing packaged charts.

It reads the current directory, generates an index based on the charts found, and writes the result to 'index.yaml' in the current directory.

The command is helm repo index [DIR] [flags].

To merge the generated index with an existing index file, use the '--merge' flag.

To set an absolute URL to the charts, use the '--url' flag.

With --merge, charts in the current directory are combined into the given index, and local charts take priority over existing charts.

## Other options

Options include --help, --json to output in JSON format, --merge to merge the generated index into the given index, and --url for the url of the chart repository.

Inherited options include --debug to enable verbose output, --namespace for namespace scope, and --repository-cache for the path to the directory containing cached repository indexes, defaulting to ~/.cache/helm/repository.

SEE ALSO links to helm repo, which can add, list, remove, update, and index chart repositories.

## See also

- [helm-chart-repository](https://iinventedlight.com/library/notes/helm-chart-repository/)
- [helm-registries](https://iinventedlight.com/library/notes/helm-registries/)
- [helm-dependency](https://iinventedlight.com/library/notes/helm-dependency/)

## Claims

- id: C1
  claim: The command creates an index.yaml file for a chart repository.
  source: S1
  evidence: "This tool is used for creating an 'index.yaml' file for a chart repository."

- id: C2
  claim: On merge, charts from the local directory win over existing entries.
  source: S1
  evidence: "with local charts taking priority over existing charts."

- id: C3
  claim: The --url flag sets an absolute URL for the charts.
  source: S2
  evidence: "To set an absolute URL to the charts, use '--url' flag."

## Sources

- [S1] helm repo index. The Helm Authors. https://helm.sh/docs/helm/helm_repo_index/ . License: MIT. Accessed 2026-11-26.

- [S2] helm repo index (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/helm/helm_repo_index.md . License: MIT. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm repo index; The Helm Authors, helm repo index (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
