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

from @unified-product-graph/cli · Stand in the graph

upg ls

List the cursor's neighbours, grouped by relationship, with a "next here" hint.

Usage

upg ls [options]

Options

--file <path>
Path to .upg file
--at <id>
List a node's neighbours statelessly (ignores the cursor)
--json
Machine-readable JSON output

Examples

Show the cursor's neighbours as verbs, plus what you can create next

upg ls

Output

opportunity "Reduce cart abandonment"
  addresses          → solution "Guest checkout flow"
  ← pursues          persona "Returning shopper"
  next here: solution, hypothesis, metric

List a node's neighbours without moving the cursor

upg ls --at n_abc123

Related

upg hereupg atupg new