hosted:lineage:add
Commit a parent-child lineage relation. Adding a relation that already exists, or one that would make a node its own ancestor (a self-parent included), is refused and nothing is published. The relation belongs to the child's repository.
Reference for flywheel hosted:lineage:add.
Commit a lineage relation to the child's hosted repository. Supply --parent-repository-id only when the parent lives across a repository boundary.
Command Group
Hosted Repository
Summary
Commit a parent-child lineage relation. Adding a relation that already exists, or one that would make a node its own ancestor (a self-parent included), is refused and nothing is published. The relation belongs to the child's repository.
Effect
changes data
Usage
flywheel hosted:lineage:add <FLAGS> <parent_node_id> <child_node_id>Arguments
| Argument | Required | Choices | Description |
|---|---|---|---|
<parent_node_id> | Yes | Parent node UUID. | |
<child_node_id> | Yes | Child node UUID. |
Required flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--repository-id | string | Hosted repository UUID. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--parent-repository-id | string | Repository UUID holding the lineage parent; omit it when the parent is in the child's repository. flywheel hosted:node:get <parent_node_id> prints the parent's repository_id. | ||
--message | string | Hosted commit message. | ||
--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. | ||
--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
Commit a parent-child lineage relation.
flywheel hosted:lineage:add --repository-id=<uuid> <parent_node_id> <child_node_id> --format=jsonCommit a lineage boundary whose parent remains in another repository.
flywheel hosted:lineage:add --repository-id=<child_repository_id> <parent_node_id> <child_node_id> --parent-repository-id=<parent_repository_id> --format=jsonOutput
Default format: human.
| Field | Type |
|---|---|
commit_id | string |
head | string |
cursor | string |
receipt_sequence | integer |
warnings (optional) | array<string> |
hosted:edge:set-content
Commit new content for a semantic edge.
hosted:lineage:list
Read one page of direct visible parents or children. Returns edges (each with cursor and node) and page_info (has_next_page, has_previous_page, start_cursor, end_cursor). Repeat with --after set to page_info.end_cursor while has_next_page is true, keeping the node and --direction unchanged.