hosted:node:branch

Create one branched node and one lineage relation from the source, copying the source's title. Without --repository-id the server places it in the source's repository when you hold a write role there, otherwise in your fork of that repository, where the node starts private unless you have added members to that fork. With --repository-id, commit it in that hosted repository, which must hold the source.

Reference for flywheel hosted:node:branch.

Create and commit one branched node that copies the source's title. Without --repository-id, the server chooses the repository: the source's repository when you hold a write role there, otherwise your fork of that repository, where the node starts private unless you have added members to that fork. The result names the node, the repository it landed in and the placement. With --repository-id, the branch is committed in that hosted repository, which must already hold the source and requires a sufficient repository role. An existing repository refuses insufficient membership with 403 repository_forbidden (CLI exit 3). To add your own node under a readable parent without joining its repository, run flywheel hosted:node:create --parent <node_id> --title 'My addition'; without a write role there, it lands in your fork. Missing and unreadable sources still return 404, and nothing is created. See Add to a graph you don't own for the server-placement workflow.

Command Group

Hosted Repository

Summary

Create one branched node and one lineage relation from the source, copying the source's title. Without --repository-id the server places it in the source's repository when you hold a write role there, otherwise in your fork of that repository, where the node starts private unless you have added members to that fork. With --repository-id, commit it in that hosted repository, which must hold the source.

Usage

flywheel hosted:node:branch [FLAGS] <node_id>

Arguments

ArgumentRequiredChoicesDescription
<node_id>YesNode UUID.

Required flags

None.

Optional flags

FlagValueDefaultChoicesDescription
--repository-idstringHosted repository UUID to commit to. Omit it to let the server choose the repository.
--messagestringHosted commit message. Only with --repository-id.
--expected-headstringExpected hosted head; skips the automatic head read. Only with --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

Branch a node you can read; the branch lands in the source's repository or in your fork of it.

flywheel hosted:node:branch <node_id> --format=json

Commit one branched node in this hosted repository and one lineage relation copying the source's title.

flywheel hosted:node:branch --repository-id=<uuid> <node_id> --format=json