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 needPreview status migrations (dry-run default)
upg migrate statusRename and flip an edge type
upg migrate edges --from old_edge --to new_edge --flip