This page is auto-generated from pkg/diffyml/cli/flag_metadata.go by make docs-gen. Do not edit by hand — your changes will be overwritten on the next build.

diffyml [flags] <from> <to>

Output#

FlagTypeDefaultDescription
-o, --outputstringdetailedspecify output style: compact, brief, github, gitlab, gitea, json, json-patch, detailed
-c, --colorstringautospecify color usage: always, never, or auto
-t, --truecolorstringautospecify true color usage: always, never, or auto

Comparison#

FlagTypeDefaultDescription
-i, --ignore-order-changesboolignore order changes in lists
--ignore-whitespace-changesboolignore leading or trailing whitespace changes
--format-stringsboolcanonicalize embedded JSON strings before comparison
-v, --ignore-value-changesboolexclude changes in values
--detect-kubernetesbooltruedetect kubernetes entities
--detect-renamesbooltrueenable detection for renames
--ignore-api-versionboolignore apiVersion when matching Kubernetes resources
-x, --no-cert-inspectionbooldisable x509 certificate inspection
--swapboolswap ‘from’ and ’to’ for comparison

Filtering#

FlagTypeDefaultDescription
--filterlistfilter reports to a subset of differences (repeatable)
--excludelistexclude reports from a set of differences (repeatable)
--filter-regexplistfilter reports using regular expressions (repeatable)
--exclude-regexplistexclude reports using regular expressions (repeatable)
--additional-identifierlistuse additional identifier in named entry lists (repeatable)

Neat#

FlagTypeDefaultDescription
--neatboolexclude well-known noisy K8s/Helm/ArgoCD/Flux paths
--no-neat-helmboolwith –neat: keep Helm-injected paths
--no-neat-argocdboolwith –neat: keep ArgoCD-injected paths
--no-neat-fluxboolwith –neat: keep Flux-injected paths
--no-neat-statusboolwith –neat: keep .status subtree and spec.nodeName
--neat-explainboolprint neat exclude regexes that fired (to stderr)
--neat-strip-pathlistadditional regex appended to the neat bundle (requires –neat; repeatable)

Masking#

FlagTypeDefaultDescription
--mask-secretsboolauto-mask data/stringData of Kubernetes Secret resources
--mask-pathlistadditional path to mask (dot-notation, prefix match; repeatable)
--mask-path-regexplistadditional path to mask (regex; repeatable)
--mask-placeholderstring***placeholder for masked values

Display#

FlagTypeDefaultDescription
-b, --omit-headerboolomit the diffyml summary header
-g, --use-go-patch-stylebooluse Go-Patch style paths in outputs
--multi-line-context-linesint4context lines for multi-line strings

Chroot#

FlagTypeDefaultDescription
--chrootstringchange the root level of the input file
--chroot-of-fromstringonly change the root level of the from input file
--chroot-of-tostringonly change the root level of the to input file
--chroot-list-to-documentsbooltreat chroot list as set of documents

AI Summary#

FlagTypeDefaultDescription
-S, --summaryboolenable AI-powered summary of differences (requires ANTHROPIC_API_KEY)
--summary-modelstringclaude-haiku-4-5-20251001specify Anthropic model for summary

Configuration#

FlagTypeDefaultDescription
--configstring.diffyml.ymlpath to config file

Other#

FlagTypeDefaultDescription
-s, --set-exit-codeboolset program exit code based on differences
-h, --helpboolshow help

Version#

FlagTypeDefaultDescription
-V, --versionboolshow version information

--version is handled in main.go before flag parsing, so it works even when other arguments are missing or invalid.