graph:get

Read one page of the node graph: roots (records of the starting nodes, each with a node_id), nodes_by_id (nodes keyed by node_id), has_more, next_cursor and page_size. Without --node_id, start at roots in your scopes; with it, walk that node and its descendants, not up to its root. --depth limits the walk. Pass next_cursor as --cursor with all other inputs unchanged until has_more is false. Use hosted:lineage:list for direct neighbours.

Reference for flywheel graph:get.

Read a known graph with --node_id, which includes every readable access scope by default. An unanchored read defaults to your own nodes; request --access_scopes shared or --access_scopes public for discovery. A visibility filter only narrows those scopes, so a public filter needs the public scope too. See Add to a graph you don't own.

Command Group

Nodes & Graph Commands

Summary

Read one page of the node graph: roots (records of the starting nodes, each with a node_id), nodes_by_id (nodes keyed by node_id), has_more, next_cursor and page_size. Without --node_id, start at roots in your scopes; with it, walk that node and its descendants, not up to its root. --depth limits the walk. Pass next_cursor as --cursor with all other inputs unchanged until has_more is false. Use hosted:lineage:list for direct neighbours.

Effect

read-only

Usage

flywheel graph:get [FLAGS]

Required flags

None.

Optional 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. Scopes the read to that node's graph; without --access_scopes, reads it in every scope you can read: owned, shared and public.
--access_scopesstringComma-separated scopes to read: owned (your nodes), shared (shared with you, including through a repository role), public. Default: owned, or every scope with --node_id.
--depthintegerParent-to-child links to follow below the starting nodes: 0 returns only them, 1 adds their children. Omitted: no limit.
--max_nodesintegerMax nodes in response.
--page_sizeintegerItems per page (omitted: command default). Out of range: clamped or 422, by command.
--cursorstringnext_cursor from the previous page, other inputs unchanged; omitted: first page; stop when none returns. Invalid: 422 from graph:get; admin graph lists restart.
--private_onlyfalsetrue: only your own nodes that are shared with nobody and have no repository members; needs owned among the scopes. Not the same as "not public". Omitted: false.
--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.
--filterstringNode filters, each include:<axis>:<match> or exclude:<axis>:<match> (a bare axis:match is refused here). Axes: owner (an owner's user UUID), root_graph (a root's UUID: that node and its descendants), tag (a tag name, case-insensitive; not a tag ID), visibility (owned, owned_private, shared, public, link), recency (last_24h, last_7d, last_30d, by creation time); node_type is not supported. Includes combine with OR, excludes remove matches; a bad token: 422. Applied on top of your saved filters. Comma-separated values.
--excludestringLike filter but each token may be axis:match (meaning exclude) or the full exclude:<axis>:<match>. Same axes and values; a bad token: 422. Comma-separated values.
--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

Read one page from a root and its descendants in every scope.

flywheel graph:get --node_id r_root --depth 3

Read graphs shared with you.

flywheel graph:get --access_scopes shared

Read public graphs.

flywheel graph:get --access_scopes public

Read the first graph page.

flywheel graph:get --page_size 10000

Read the next page with the same page size and other inputs unchanged.

flywheel graph:get --page_size 10000 --cursor <next_cursor>

Include a tag name (not a tag ID) and exclude an owner UUID.

flywheel graph:get --filter include:tag:priority --exclude owner:<user_uuid>

Output

Default format: json.

FieldType
rootsarray<object>
nodes_by_idobject
has_more (optional)boolean | null
next_cursor (optional)string | null
page_size (optional)integer | null
bucket_versions (optional)object | null