export:subgraph

Export nodes as one JSON document accepted by import:subgraph: version, exported_at, node_count and nodes (full records with content, summary, tags, artifacts and executions). Edges to nodes outside the export are dropped in both directions. --include_descendants adds visible descendants; exceeding --max_nodes fails with 422 export_node_limit_exceeded instead of a partial export.

Reference for flywheel export:subgraph.

Command Group

Export & Import Commands

Summary

Export nodes as one JSON document accepted by import:subgraph: version, exported_at, node_count and nodes (full records with content, summary, tags, artifacts and executions). Edges to nodes outside the export are dropped in both directions. --include_descendants adds visible descendants; exceeding --max_nodes fails with 422 export_node_limit_exceeded instead of a partial export.

Effect

read-only

Usage

flywheel export:subgraph <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--node_idsstringNode UUIDs from node_id in hosted:node:list or graph:get. Missing or hidden: 404 on reads, exports and merges; bulk writes skip and list them. Comma-separated.

Optional flags

FlagValueDefaultChoicesDescription
--include_descendantsFalse (default): export only --node_ids. True: also every visible descendant of each selected node; hidden nodes are skipped.
--max_nodesintegerMost nodes after descendant expansion, 1-5000 (default 500). Exceeding it fails with 422 export_node_limit_exceeded, with no partial export. Not applied when --include_descendants is false.
--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

Export a root and all visible descendants.

flywheel export:subgraph --node_ids n_abc --include_descendants true --max_nodes 500

Write a single-node export in the JSON format import:subgraph accepts.

flywheel export:subgraph --node_ids=n_abc --format=json --out=./subgraph.json

Output

Default format: json.

FieldType
versioninteger
exported_atstring
node_countinteger
nodesarray<object>