nodes:render:ancestry

Follow ONE path from a node toward a root, not every ancestor. At a merge choose the visible parent with the lowest node ID; multi_parent_choices lists node_id, candidate_parent_ids and selected_parent_id. Returns path_node_ids and nodes from the top down to the anchor, anchor_node_id, root_node_id, path_node_count, path_edge_count, parent_selection_strategy, incomplete_parent_links (parents that could not be loaded), cycle_detected, truncated (stopped at --max_depth) and max_depth. root_node_id is where the path stopped, not necessarily a true root when truncated or incomplete_parent_links is set. Use hosted:lineage:list --direction parents for every direct parent.

Reference for flywheel nodes:render:ancestry.

Command Group

Nodes & Graph Commands

Summary

Follow ONE path from a node toward a root, not every ancestor. At a merge choose the visible parent with the lowest node ID; multi_parent_choices lists node_id, candidate_parent_ids and selected_parent_id. Returns path_node_ids and nodes from the top down to the anchor, anchor_node_id, root_node_id, path_node_count, path_edge_count, parent_selection_strategy, incomplete_parent_links (parents that could not be loaded), cycle_detected, truncated (stopped at --max_depth) and max_depth. root_node_id is where the path stopped, not necessarily a true root when truncated or incomplete_parent_links is set. Use hosted:lineage:list --direction parents for every direct parent.

Effect

read-only

Usage

flywheel nodes:render:ancestry <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--node_idstringNode UUID (not a slug) from node_id in hosted:node:list or graph:get. Missing or hidden: 404 where the command loads it.

Optional flags

FlagValueDefaultChoicesDescription
--max_depthinteger256Most parent links to follow, 0-4096, clamped. A longer path stops there and sets truncated.
--projectionstringtopologycore, topology, fullcore: node fields with content and summary, no artifacts. topology: same, content and summary empty (a root may keep its banner artifact). full: core plus artifacts (and executions where returned), where offered. Omitted: command default. Relationship IDs vary by command; tree entries are layout only.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Follow one ancestor path for at most five parent links.

flywheel nodes:render:ancestry --node_id n_abc --max_depth 5

Output

Default format: json.

FieldType
anchor_node_idstring
root_node_idstring
path_node_idsarray<string>
path_node_countinteger
path_edge_countinteger
nodesarray<object>
parent_selection_strategystring
multi_parent_choicesarray<object>
incomplete_parent_linksarray<object>
cycle_detectedboolean
truncatedboolean
max_depthinteger