hosted:node:restore
Restore one deleted node. Restores title, content and history, but not parent or child edges; add them with hosted:lineage:add. Restores one node: after a cascade delete, restore each ID in the delete result's tombstoned_node_ids. Without --repository-id, the server finds the repository and answers 404 if the ID is unknown or you cannot write to its repository.
Reference for flywheel hosted:node:restore.
Command Group
Hosted Repository
Summary
Restore one deleted node. Restores title, content and history, but not parent or child edges; add them with hosted:lineage:add. Restores one node: after a cascade delete, restore each ID in the delete result's tombstoned_node_ids. Without --repository-id, the server finds the repository and answers 404 if the ID is unknown or you cannot write to its repository.
Effect
changes data
Usage
flywheel hosted:node:restore [FLAGS] <node_id>Arguments
| Argument | Required | Choices | Description |
|---|---|---|---|
<node_id> | Yes | Node UUID. |
Required flags
None.
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--repository-id | string | Hosted repository UUID to commit to. Omit it and the server finds the repository of the deleted node, if you can write to it. | ||
--message | string | Hosted commit message. Only with --repository-id. | ||
--expected-head | string | Hosted head this write expects, as head from flywheel hosted:repository:head <repository_id>. When set, the automatic head read is skipped; if the head has moved, the write is refused with repository_head_mismatch: read the head again and retry. Only with --repository-id. | ||
--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
Restore one deleted node by ID.
flywheel hosted:node:restore <node_id> --format=jsonCommit the restoration of a tombstoned node; retained semantic edges never block it.
flywheel hosted:node:restore --repository-id=<uuid> <node_id> --format=jsonOutput
Default format: human.
| Field | Type |
|---|---|
node_id | string |
repository_id (optional) | string |
success (optional) | boolean |
graph_event_id (optional) | string | null |
commit_id | string |
head (optional) | string |
cursor (optional) | string |
receipt_sequence (optional) | integer |
warnings (optional) | array<string> |
hosted:node:merge
Commit one merged node in this hosted repository and one lineage relation from each supplied source, in argument order. The sources are kept, not deleted or changed. The merged node takes the first nonblank source title (else "Merged node"); its content and summary start empty.
hosted:node:set
Commit one UTF-8 text value for a node field in this hosted repository.