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

from @unified-product-graph/cli · Graph

upg migrate

Catalogue-aware migrations: retype a node (applies spec defaults), migrate statuses/properties to current, or rename an edge type. Pairs with fmt and fix.

Usage

upg migrate <type|status|properties|edges> [options]

Arguments

<subcommand>
type, status, properties, or edges

Options

--file <path>
Path to .upg file
--dry-run / --no-dry-run
Preview without writing (defaults vary per subcommand)
--json
Machine-readable JSON output

Examples

Retype a node and apply spec defaults

upg migrate type n_abc need

Preview status migrations (dry-run default)

upg migrate status

Rename and flip an edge type

upg migrate edges --from old_edge --to new_edge --flip

Related

upg fmtupg fix