Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.

from @unified-product-graph/cli · Create & edit

upg dedupe

Find and merge duplicate nodes (same type + title). Dry-run by default; --apply to commit.

Usage

upg dedupe [options]

Options

--file <path>
Path to .upg file
--type <type>
Scope to one entity type
--dry-run
Preview only; do not write (default: on)
--apply
Commit the merge (else preview)
--keep <s>
newest | oldest (default newest)
-y, --yes
Skip confirmation
--json
Machine-readable JSON output

Examples

Preview duplicate merges

upg dedupe

Merge duplicate personas non-interactively

upg dedupe --type persona --apply -y

Related

upg checkupg fix