import:subgraph

Import graph JSON as new nodes in one commit, reporting the repository and its visibility.

Reference for flywheel import:subgraph.

Import a graph as new nodes in one hosted commit. Initial sharing is copied once at creation; see Sharing when a node is created for the full rule. Work an agent should not publish as it goes can instead stay in a local repository until reviewed and pushed.

Command Group

Export & Import Commands

Summary

Import graph JSON as new nodes in one commit, reporting the repository and its visibility.

Effect

changes data

Usage

flywheel import:subgraph <FLAGS>

Required flags

FlagValueDefaultChoicesDescription
--payloadjsonInline JSON or @file path with the import payload.

Optional flags

FlagValueDefaultChoicesDescription
--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

Import from a file.

flywheel import:subgraph --payload=@subgraph.json

Output

Default format: json.

FieldType
root_node_idsarray<string>
node_idsarray<string>
imported_node_idsarray<string>
id_mappingobject
normalized_cycle_edges_removedinteger
repository_id (optional)string | null
visibility (optional)string | null