repo:lineage:add

Stage a parent-child lineage relation.

Reference for flywheel repo:lineage:add.

Stage a lineage relation whose child is in the selected local repository. When the parent is in another repository, such as a node in someone else's graph that you can read, add --parent-repository-id with that repository's ID; flywheel hosted:node:get <parent_node_id> prints it as repository_id. The command works offline, so it never looks the repository up itself; without the flag, a parent this repository has no node for fails with repository_lineage_parent_not_in_repository and the corrected command. repo:lineage:list shows the relation with boundary: true; repo:commit records it locally and only repo:push publishes it, including a first push with --create-remote. The push checks that your account can read the parent; if it cannot, the push fails with repository_lineage_parent_unreadable, publishes nothing, and keeps your local commits. Every unpublished commit is pushed, so a later commit that removes the relation does not help. Either get read access on the parent and push again, or run the flywheel repo:unpublished:drop --operation <operation_id> command the refusal prints to take the link out of your unpublished commits, then push again. See Add to a graph you don't own for the complete local sequence.

Command Group

Local Repository

Summary

Stage a parent-child lineage relation.

Usage

flywheel repo: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

None.

Optional flags

FlagValueDefaultChoicesDescription
--repostringLocal repository filesystem path.
--personalUse the configured personal repository.
--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.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILEUse a configured CLI profile for this invocation.
--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.
--yesSkip confirmation prompts for destructive operations.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Stage a parent-child lineage relation.

flywheel repo:lineage:add <parent_node_id> <child_node_id> --format=json

Stage a lineage boundary: the parent stays in another repository you can read, and repo:push publishes the relation only if you can still read it.

flywheel repo:lineage:add <parent_node_id> <child_node_id> --parent-repository-id=<parent_repository_id> --repo <path> --format=json