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.

ArgumentDescription
node-idRequired. The ID of the node to look up neighbors for.
OptionTypeDefaultDescription
--limit <n>number20Maximum number of related nodes to return.
--jsonflagOutput raw JSON.
--api-url <url>stringOverride 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'