Skip to content

from @unified-product-graph/cli · Read

upg tree

Tree view of the graph. Filter by entity type or domain.

Usage

upg tree [filter] [options]

Arguments

[filter]
Optional entity type or domain to filter the tree by

Options

--file <path>
Path to .upg file
--id <id>
Subtree rooted at a specific node
--depth <n>
Maximum depth. Defaults to 10

Examples

Render the whole graph as a tree

upg tree

Output

  ⬡ UPG · Tree

product  "Checkout Redesign"
├── persona  "Returning shopper"
│   └── job  "Pay without re-entering details"
├── opportunity  "Reduce cart abandonment"
│   └── solution  "Guest checkout flow"
│       └── feature  "Guest checkout" [active]
└── feature  "Saved payment methods" [shipped]

Tree filtered to features

upg tree feature

Subtree under a node, 3 levels deep

upg tree --id node_abc123 --depth 3

Related

upg listupg search