hosted:node:create

Create a node from --title or the full six-field JSON values file. Without --repository-id the server places it: under --parent, in the parent's repository when you hold a repository write role there, otherwise in your fork. A fork node copies the parents' sharing when all parents are in one upstream repository and you hold a named Editor or Admin grant on every parent; otherwise it starts private unless you have added fork members. With no --parent, create a root in your default workspace. With --repository-id, commit a root in that hosted repository.

Reference for flywheel hosted:node:create.

Create and commit one node. Without --repository-id, the server chooses the repository: with --parent, the node goes into the parent's repository when you hold a write role there and into your fork of that repository otherwise, where it copies sharing when all parents are in the one upstream repository and you hold a named Editor or Admin grant on every parent; otherwise it starts private unless you have added fork members; with no --parent, it becomes a root in your default workspace. The result names the node, the repository it landed in and the placement. With --repository-id, the node is committed as a root in that hosted repository and requires a sufficient repository role. An existing repository refuses insufficient membership with 403 repository_forbidden (CLI exit 3). Instead, to add under a node you can read, run flywheel hosted:node:create --parent <node_id> --title 'My addition'; without a write role there, it lands in your fork. Missing and unreadable parents still return 404, and nothing is created. See Add to a graph you don't own for creation, visibility read-back and sharing.

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 a node from --title or the full six-field JSON values file. Without --repository-id the server places it: under --parent, in the parent's repository when you hold a repository write role there, otherwise in your fork. A fork node copies the parents' sharing when all parents are in one upstream repository and you hold a named Editor or Admin grant on every parent; otherwise it starts private unless you have added fork members. With no --parent, create a root in your default workspace. With --repository-id, commit a root in that hosted repository.

Effect

changes data

Usage

flywheel hosted:node:create [FLAGS]

Required flags

None.

Optional flags

FlagValueDefaultChoicesDescription
--repository-idstringHosted repository UUID to commit to. Omit it to let the server choose the repository.
--parentstringParent node UUID, any node you can read; repeat --parent for more parents, and the first one decides the repository. Not with --repository-id.
--titlestringMinimal node title.
--values-filestringJSON file containing exactly six node fields.
--messagestringHosted commit message. Only with --repository-id.
--expected-headstringHosted 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. 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

Add a node under a node you can read; it lands in the parent's repository or in your fork of it.

flywheel hosted:node:create --parent=<node_id> --title "Next step" --format=json

Create a root node in your default workspace.

flywheel hosted:node:create --title "First node" --format=json

Commit the first graph node with documented null defaults.

flywheel hosted:node:create --repository-id=<uuid> --title "First node"

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>