Interview Prep/Helm/Release Lifecycle, Repositories & OCI

What does `helm package` do and which flags matter?

BeginnerConceptRelease Lifecycle, Repositories & OCI
Answer

It validates and archives a chart directory into <name>-<version>.tgz, applying .helmignore:

helm package ./shop --version 1.4.0 --app-version 2.3.0 --dependency-update -d dist/

--version and --app-version override Chart.yaml without editing it, which is how CI injects the build version. --dependency-update refreshes charts/ first. The archive is what you push to a registry.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI