Skip to content

lb related

Terminal window
lb related <node-id> [options]

lb related returns the immediate neighbors of a node in the knowledge graph — all nodes connected by a single edge. Use it to explore what the graph has linked to a specific node, or to discover related content you may have forgotten.

| Argument | Description | |----------|-------------| | node-id | Required. The ID of the node to look up neighbors for. |

| Option | Type | Default | Description | |--------|------|---------|-------------| | --limit <n> | number | 20 | Maximum number of related nodes to return. | | --json | flag | — | Output raw JSON. | | --api-url <url> | string | — | Override the API base URL. |

Show neighbors for a node:

Terminal window
lb related nd_abc123

Limit to top 5 related nodes:

Terminal window
lb related nd_abc123 --limit 5

Output as JSON for scripting:

Terminal window
lb related nd_abc123 --json | jq '.[].title'