lb related
Synopsis
Section titled “Synopsis”lb related <node-id> [options]Description
Section titled “Description”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.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
node-id | Required. The ID of the node to look up neighbors for. |
Options
Section titled “Options”| 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. |
Examples
Section titled “Examples”Show neighbors for a node:
lb related nd_abc123Limit to top 5 related nodes:
lb related nd_abc123 --limit 5Output as JSON for scripting:
lb related nd_abc123 --json | jq '.[].title'