hosted:node:branch

Create one branched node and one lineage relation from the source. Only the source's title is copied, not its content, summary, tag assignments or artifacts, and the source is unchanged. Without --repository-id the server places it in the source's repository when you hold a repository write role there, otherwise in your fork. A fork node copies the source's sharing when you hold a named Editor or Admin grant on it; otherwise it starts private unless you have added fork members. 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 it starts shared like the parent when you hold a named Editor or Admin grant on it, otherwise private unless you have added fork members. 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.

Initial sharing is copied once at creation; see Sharing when a node is created for the full rule. To review work before publishing it, use a local repository and push only when ready.

Command Group

Hosted Repository

Summary

Create one branched node and one lineage relation from the source. Only the source's title is copied, not its content, summary, tag assignments or artifacts, and the source is unchanged. Without --repository-id the server places it in the source's repository when you hold a repository write role there, otherwise in your fork. A fork node copies the source's sharing when you hold a named Editor or Admin grant on it; otherwise it starts private unless you have added fork members. With --repository-id, commit it in that hosted repository, which must hold the source.

Effect

changes data

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-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. Only with --repository-id.
--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

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

Output

Default format: human.

FieldType
node_idstring
repository_id (optional)string
placement (optional)"parent_repository" | "fork" | "default_workspace"
commit_id (optional)string
head (optional)string
cursor (optional)string
receipt_sequence (optional)integer
warnings (optional)array<string>