Skip to content

from @unified-product-graph/cli · Read

upg list

Query entities from the graph.

Usage

upg list [options]

Options

--file <path>
Path to .upg file
--type <type>
Filter by entity type
--status <status>
Filter by status
--orphans
Restrict to disconnected entities
--parent <id>
Restrict to children of a specific node
--count
Print the count only
--json
Machine-readable JSON output

Examples

List every feature node

upg list --type feature

Output

  ⬡ UPG · List

  feature  "Guest checkout" [active]
  feature  "One-click reorder" [active]
  feature  "Saved payment methods" [shipped]

  3 entities

Count active entities

upg list --status active --count

Find disconnected entities to wire up

upg list --orphans

Related

upg treeupg searchupg gaps