from @unified-product-graph/cli · Stand in the graph
upg link
Connect two nodes; edge type + direction inferred (auto-flips to canonical).
Usage
upg link <a> <b> [options]Arguments
<a>- First node, resolved by id or title
<b>- Second node, resolved by id or title
Options
--file <path>- Path to .upg file
--as <verb|n>- Pick the relationship on an ambiguous pair (verb or 1-based index)
--json- Machine-readable JSON output
Examples
Order-independent: the direction auto-flips to the canonical one
upg link "Returning shopper" "Pay without re-entering details"Output
✓ linked persona —pursues→ job
Disambiguate on a non-TTY by relationship index
upg link n_persona n_job --as 1