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
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--payload | json | Inline JSON or @file path with the import payload. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Select a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Confirm forced compute:release-all --force. Other runtime commands do not read --yes. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Import from a file.
flywheel import:subgraph --payload=@subgraph.jsonOutput
Default format: json.
| Field | Type |
|---|---|
root_node_ids | array<string> |
node_ids | array<string> |
imported_node_ids | array<string> |
id_mapping | object |
normalized_cycle_edges_removed | integer |
repository_id (optional) | string | null |
visibility (optional) | string | null |
export:summary:stream
Write the same model-backed summary as export:summary, streaming NDJSON events. Sends selected nodes' non-empty summaries to an outside language model (OpenRouter by default, through LiteLLM) and bills usage to your credits (credits:balance). Empty summaries are left out; if all are empty, emits one complete event with `_No node content found in selected nodes._` and no model call or charge. Streams to stdout, or --out when given; unlike MCP, the CLI does not buffer the whole answer into one result. Of the five summary commands, nodes:render:summary and export:summary:render-pdf call no model and cost nothing; export:summary, export:summary:stream and export:summary:pdf call an outside language model and charge credits.
blobs:get
Download a raw blob by storage key.