Skip to main content
Version: Next

kustomize CLI reference

ModularPipelines.Kubernetes provides strongly typed access to the kustomize CLI.

Executable prerequisite

This package does not install the kustomize executable. Install it separately and ensure kustomize is available on PATH.

Follow the executable's official documentation for installation instructions.

Package installation

dotnet add package ModularPipelines.Kubernetes

Resolve the service with context.Tools.Kustomize. For projects older than C# 14, import ModularPipelines.Kubernetes.Extensions and use the context.Kustomize() extension method as a compatibility fallback.

Module example

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var kustomize = context.Tools.Kustomize;

Commands

CLI commandOptions record
kustomize buildKustomizeBuildOptions
kustomize cfgKustomizeCfgOptions
kustomize cfg catKustomizeCfgCatOptions
kustomize cfg countKustomizeCfgCountOptions
kustomize cfg grepKustomizeCfgGrepOptions
kustomize cfg treeKustomizeCfgTreeOptions
kustomize createKustomizeCreateOptions
kustomize editKustomizeEditOptions
kustomize edit addKustomizeEditAddOptions
kustomize edit add annotationKustomizeEditAddAnnotationOptions
kustomize edit add baseKustomizeEditAddBaseOptions
kustomize edit add buildmetadataKustomizeEditAddBuildmetadataOptions
kustomize edit add componentKustomizeEditAddComponentOptions
kustomize edit add configmapKustomizeEditAddConfigmapOptions
kustomize edit add generatorKustomizeEditAddGeneratorOptions
kustomize edit add labelKustomizeEditAddLabelOptions
kustomize edit add patchKustomizeEditAddPatchOptions
kustomize edit add resourceKustomizeEditAddResourceOptions
kustomize edit add secretKustomizeEditAddSecretOptions
kustomize edit add transformerKustomizeEditAddTransformerOptions
kustomize edit alpha-list-builtin-pluginKustomizeEditAlphaListBuiltinPluginOptions
kustomize edit fixKustomizeEditFixOptions
kustomize edit removeKustomizeEditRemoveOptions
kustomize edit remove annotationKustomizeEditRemoveAnnotationOptions
kustomize edit remove buildmetadataKustomizeEditRemoveBuildmetadataOptions
kustomize edit remove configmapKustomizeEditRemoveConfigmapOptions
kustomize edit remove labelKustomizeEditRemoveLabelOptions
kustomize edit remove patchKustomizeEditRemovePatchOptions
kustomize edit remove resourceKustomizeEditRemoveResourceOptions
kustomize edit remove secretKustomizeEditRemoveSecretOptions
kustomize edit remove transformerKustomizeEditRemoveTransformerOptions
kustomize edit setKustomizeEditSetOptions
kustomize edit set annotationKustomizeEditSetAnnotationOptions
kustomize edit set buildmetadataKustomizeEditSetBuildmetadataOptions
kustomize edit set configmapKustomizeEditSetConfigmapOptions
kustomize edit set imageKustomizeEditSetImageOptions
kustomize edit set labelKustomizeEditSetLabelOptions
kustomize edit set nameprefixKustomizeEditSetNameprefixOptions
kustomize edit set namespaceKustomizeEditSetNamespaceOptions
kustomize edit set namesuffixKustomizeEditSetNamesuffixOptions
kustomize edit set replicasKustomizeEditSetReplicasOptions
kustomize edit set secretKustomizeEditSetSecretOptions
kustomize fnKustomizeFnOptions
kustomize fn runKustomizeFnRunOptions
kustomize localizeKustomizeLocalizeOptions