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
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--node_ids | string | Node 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
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--include_descendants | False (default): export only --node_ids. True: also every visible descendant of each selected node; hidden nodes are skipped. | |||
--max_nodes | integer | Most 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. | ||
--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
Export a root and all visible descendants.
flywheel export:subgraph --node_ids n_abc --include_descendants true --max_nodes 500Write a single-node export in the JSON format import:subgraph accepts.
flywheel export:subgraph --node_ids=n_abc --format=json --out=./subgraph.jsonOutput
Default format: json.
| Field | Type |
|---|---|
version | integer |
exported_at | string |
node_count | integer |
nodes | array<object> |
campaign-budgets:update
Change a campaign budget's caps, name or description. Omitted fields stay as they are and at least one must be given. A revoked budget cannot be updated. Raising a cap needs the extra credit headroom, as creating one does. Returns `budget`.
export:summary
Write a Markdown summary of selected nodes. Sends their 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, returns `_No node content found in selected nodes._` without a model call or charge. Returns markdown and title. 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.