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

ArgumentRequiredChoicesDescription
<parent_node_id>YesParent node UUID.
<child_node_id>YesChild node UUID.

Required flags

FlagValueDefaultChoicesDescription
--repository-idstringHosted repository UUID.

Optional flags

FlagValueDefaultChoicesDescription
--parent-repository-idstringRepository 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.
--messagestringHosted commit message.
--expected-headstringHosted head this write expects, as head from flywheel hosted:repository:head &lt;repository_id&gt;. 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.
--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

Commit a parent-child lineage relation.

flywheel hosted:lineage:add --repository-id=<uuid> <parent_node_id> <child_node_id> --format=json

Commit 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=json

Output

Default format: human.

FieldType
commit_idstring
headstring
cursorstring
receipt_sequenceinteger
warnings (optional)array<string>