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

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
--pattern <id>
Assemble a named tree pattern: ost, okr, user, product, validation, strategy, feature_areas, delivery, architecture, journey, design_system, commercial, north_star, org
--id <id>
Subtree rooted at a specific node
--depth <n>
Maximum depth. Defaults to 10
--json
Machine-readable nested JSON output

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

Assemble the objective → key_result → metric pattern

upg tree --pattern okr

Subtree under a node, 3 levels deep

upg tree --id node_abc123 --depth 3

Related

upg listupg search