Expand description
Typed Helm commands, one file per group. Each command is a plain struct implementing
Command; backends implement
Execute for the ones they support.
Each command and each option group (such as ChartPathOptions) has a derived bon builder:
Command::builder(required...), one setter per flag, .build(). A required argument cannot
be left out:
ⓘ
use helm_rs::command::{Install, ReleaseName};
let _ = Install::builder(ReleaseName::Generated);Structs§
- Chart
Info - What
helm show allreports, assembled from the individualshowcommands. - Chart
Path Options - The chart download flags shared by install, upgrade and the other commands that fetch a chart
(
addChartPathOptionsFlags,pkg/cmd/flags.go). - Chart
Verification - What Helm verified about a chart: the signer and the hash of the archive
(
pkg/action/verify.go,pkg/action/pull.go, Helm v4.3.0). - Create
helm create(pkg/cmd/create.go): scaffolds a chart directory and returns its path.- Dependency
Build helm dependency build: rebuildscharts/fromChart.lockwithout renegotiating versions; without a lock file it behaves likeDependencyUpdate. Helm prints progress lines only, which are dropped.- Dependency
List helm dependency list: the dependencies a chart declares and whethercharts/satisfies them. Helm has no machine output, so the CLI backend parses the table; it always passes--max-col-widthwith the largest value so that no cell is cut short.- Dependency
Listing - What
helm dependency listprinted (pkg/action/dependency.go, Helm v4.3.0). - Dependency
Options - The flags
helm dependency buildandhelm dependency updateshare (addDependencySubcommandFlags,pkg/cmd/dependency.go, Helm v4.3.0). - Dependency
Row - One row of the
helm dependency listtable. - Dependency
Update helm dependency update: resolves the dependencies ofChart.yaml, downloads them intocharts/and writesChart.lock. Helm prints progress lines only, which are dropped.- Env
helm env: the environment settings Helm resolved, asHELM_*keys.- GetAll
helm get all(pkg/cmd/get_all.go): the texthelm status --debugprints, with the chart metadata, values, hooks, manifest and notes. Helm has no JSON for it and its--templateonly offers plain Go template access to.Release(no functions, so no JSON encoder), which makes a typed result impossible; the output is the text. For structured data useStatusplusGetManifest,GetHooks,GetValuesandGetNotes.- GetHooks
helm get hooks(pkg/cmd/get_hooks.go): the hooks of a release, parsed from the hook manifests Helm prints. Helm prints no execution state, solast_runis empty; read it fromStatusinstead.- GetManifest
helm get manifest(pkg/cmd/get_manifest.go): the rendered, non-hook manifests of a release, parsed.- GetMetadata
helm get metadata -o json(pkg/cmd/get_metadata.go).- GetNotes
helm get notes(pkg/cmd/get_notes.go): the renderedNOTES.txt, empty when the chart has none.- GetValues
helm get values -o json(pkg/cmd/get_values.go): the user-supplied values, or withallthe computed ones. Helm printsnullwhen no values were supplied.- Helm
Version - The build information of Helm (
internal/version.BuildInfo, v4.3.0). - History
helm history -o json(pkg/cmd/history.go): the revisions of a release, oldest first.- History
Entry - One revision in
helm history -o json(releaseInfo,pkg/cmd/history.go). - HubChart
- One hub result (
hubChartElementinpkg/cmd/search_hub.go, Helm v4.3.0). - HubRepository
- The repository of a
HubChart(hubChartRepo). - Install
helm install -o json(pkg/cmd/install.go,pkg/action/install.go): installs a chart and returns the release Helm recorded (withdry_runset, the one it would record).- Lint
helm lint(pkg/cmd/lint.go,pkg/action/lint.go): checks charts and returns the findings.- Lint
Message - One finding: Helm prints it as
[SEVERITY] path: message. - Lint
Report - What
helm lintprinted. - Lint
Summary - The totals Helm reports (
N chart(s) linted, M chart(s) failed). - Linted
Chart - The findings for one linted chart.
- List
helm list -o json(pkg/cmd/list.go). Helm’s--short,--no-headersand--time-formatonly change the table or the time text, which the typed output replaces, so they are not fields (--shortis the names of the result).- List
Item - One release of
helm list -o json(releaseElement,pkg/cmd/list.go). Helm writes the revision and the time as strings; both are parsed here. - Package
helm package(pkg/cmd/package.go,pkg/action/package.go): packages chart directories intoNAME-VERSION.tgzarchives and returns the path of each, in order.- Plugin
- One installed plugin: a row of the
helm plugin listtable (pkg/cmd/plugin_list.go). - Plugin
Install helm plugin install: installs a plugin from a local directory, an archive URL, a VCS URL or anoci://reference.- Plugin
Installed - What a successful
helm plugin installprinted (pkg/cmd/plugin_install.go, Helm v4.3.0). - Plugin
List helm plugin list: the installed plugins. Helm has no machine output for it, so the CLI backend parses the table.- Plugin
Package helm plugin package: packages a plugin directory intoNAME-VERSION.tgz, signed by default.- Plugin
Uninstall helm plugin uninstall: removes installed plugins.- Plugin
Update helm plugin update: updates installed plugins from their source.- Plugin
Verification - What a successful
helm plugin verifyreports (pkg/cmd/plugin_verify.go, Helm v4.3.0). - Plugin
Verify helm plugin verify: verifies a plugin tarball against its.provfile. Failure is the error; success returns the signer and the verified hash.- Pull
helm pull: downloads a chart from a repository, a URL or an OCI registry, and optionally unpacks it. The destination directory must exist. Helm’s several-charts form is a loop over the charts with the same flags (pkg/cmd/pull.go), so this command pulls one chart; run it once per chart.- Pulled
- What a successful
helm pullprinted (pkg/action/pull.go, Helm v4.3.0). Helm does not print where it saved the chart: that is<destination>/<name>-<version>.tgz, or withuntara directory below it. - Push
helm push: uploads a packaged chart (and its.provfile when it sits next to it) to an OCI registry. Helm 4.3 has only the OCI pusher.- Registry
Artifact - A chart or provenance blob in an OCI registry, as the
Pulled:/Pushed:andDigest:line pairs of Helm’s registry client name it (pkg/registry/client.go). - Registry
Login helm registry login: stores credentials for an OCI registry in the registry config.- Registry
Logout helm registry logout: removes the stored credentials of a registry.- Release
Metadata - The result of
helm get metadata -o json(action.Metadata,pkg/action/get_metadata.go). - RepoAdd
helm repo add: adds a chart repository torepositories.yamland downloads its index.- Repo
Chart - One repository search result (
repoChartElementinpkg/cmd/search_repo.go, Helm v4.3.0). - Repo
Index helm repo index: writesindex.yamlfor the packaged charts (*.tgz) in a directory. Read the result natively withIndex::load.- Repo
List helm repo list: the configured chart repositories, requested as-o json.- Repo
Remove helm repo remove: removes repositories and their cached indexes.- Repo
Update helm repo update: downloads the indexes of the repositories.- Repository
- One configured repository (
repositoryElementinpkg/cmd/repo_list.go, Helm v4.3.0). - Rollback
helm rollback(pkg/cmd/rollback.go): rolls a release back to an earlier revision. Helm prints only a success line, so there is no output; read the result withStatus.- Search
Hub helm search hub: searches Artifact Hub (or another Monocular-compatible hub) over the network, requested as-o json.--max-col-widthand--list-repo-urlonly shape the table, and the JSON always carries the repository, so they are not modelled.- Search
Repo helm search repo: searches the cached indexes of the added repositories, requested as-o json.--max-col-widthonly shapes the table, so it is not modelled.- ShowAll
helm show all: the chart metadata, values, README and CRDs. Helm’s ownshow alloutput cannot be split reliably (it marks no part boundaries), so the CLI backend runsshow chart,show values,show readmeandshow crdsconcurrently and combines them.- Show
Chart helm show chart(pkg/cmd/show.go): theChart.yamlmetadata Helm prints, parsed.- Show
Crds helm show crds: the files of the chart’scrds/directory, parsed.- Show
Readme helm show readme: the contents of the chart’s README (README.md,README.txtorREADME, any case), exactly as in the file.Nonewhen the chart has none; an empty README isSome("")(Helm prints a newline for it and nothing for no README).- Show
Values helm show values(pkg/cmd/show.go,pkg/action/show.go): the chart’svalues.yaml, exactly as in the file.Nonewhen the chart has none; an empty file isSome("")(Helm prints a newline for it and nothing for no file). Withjsonpaththe output is what the expression selects, andNonemeans it selected nothing (or there are no values).- Status
helm status -o json(pkg/cmd/status.go): the release without its chart (Helm strips it). The resources ofinfo.resourcesare only filled in for this machine output.- Template
helm template(pkg/cmd/template.go): renders a chart locally, with the flags ofhelm install(addInstallFlags) and its own.helm templateis always a dry run, sodry_runmay beClient(Helm’s default) orServerbut notNone. The deprecated--validate(use--dry-run=server) and the no-op--hide-notesand--render-subchart-notesare not modelled.- Test
helm test(pkg/cmd/release_testing.go): runs the test hooks of a release. Helm has no machine-readable output for it (there is no-o), so the output is the status text it prints (including aTEST SUITEblock per test); the structured result is the hooks’last_runin the release read afterwards withStatus. A failing test makes Helm exit with an error, which is reported asError::Backend.- Uninstall
helm uninstall(pkg/cmd/uninstall.go): removes one or more releases. Helm prints onerelease "name" uninstalledline per release (also for a missing one underignore_not_found, and for a dry run), which carries no more than success, so there is no output. A release that does not exist isError::ReleaseNotFoundunlessignore_not_foundis set. Helm stops at the first failure; earlier releases stay uninstalled.- Upgrade
helm upgrade -o json(pkg/cmd/upgrade.go,pkg/action/upgrade.go): upgrades a release to a chart and returns the release Helm recorded. Withinstall, a missing or uninstalled release is installed instead and the same JSON comes back.- Verify
helm verify: verifies a packaged chart against thePATH.provfile next to it. Failure is the error; success returns the signer and the verified hash.- Version
helm version: the version of the Helm binary.
Enums§
- Cascade
- How Helm deletes the objects that depend on a release’s resources (
--cascade). - Chart
Ref - A chart as
helm install,helm upgradeand the other chart commands accept it (ChartPathOptions.LocateChart,pkg/action/install.go). Helm tries a local path first, then the remote forms. - Dependency
Status - The status column of
helm dependency list(dependencyStatusandstatArchiveForStatus,pkg/action/dependency.go): every string Helm v4.3.0 can print. - DryRun
- The
--dry-runstrategies (addDryRunFlag,pkg/cmd/helpers.go). The bare--dry-runand the boolean forms are deprecated legacy spellings ofDryRun::ClientandDryRun::Noneand are not modelled. - Force
- How to resolve a conflict with live objects. Helm rejects
--force-replacetogether with--force-conflicts, so the two are one choice. - Passphrase
- Where
helm plugin package --signreads the passphrase of the signing key. - Release
Name - How the release of an install is named. Helm refuses a name together with
--generate-nameor--name-template, so the three are one choice. - Server
Side - The
--server-sidechoice ofupgradeandrollback(a string flag there;installhas a plain boolean instead). - Severity
- How serious a lint finding is (
pkg/chart/v2/lint/support/message.go). - Templated
- What
helm templateproduced: the documents it printed, or, withoutput_dir, the files it wrote instead. - Values
Mode - Which values an upgrade starts from. Helm documents
--reset-valuesas winning over--reuse-values, which wins over--reset-then-reuse-values, so only the winner is modelled. Without a mode, Helm starts from the chart’s values. - Wait
Strategy - The
--waitstrategies (waitValue,pkg/cmd/flags.go). Helm’s default when the flag is omitted ishookOnly; the bare--waitmeanswatcher, so the CLI backend always writes the explicit--wait=<strategy>form.