nodes:sharing:set
Change node visibility, keeping collaborators unless explicitly replaced; owner or admin only. Prints the new policy with the same fields nodes:sharing:get reads.
Reference for flywheel nodes:sharing:set.
Command Group
Nodes & Graph Commands
Summary
Change node visibility, keeping collaborators unless explicitly replaced; owner or admin only. Prints the new policy with the same fields nodes:sharing:get reads.
Effect
DESTRUCTIVE: deletes, overwrites or revokes something
Usage
flywheel nodes:sharing:set <FLAGS>Required flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--node_id | string | Node UUID (not a slug) from node_id in hosted:node:list or graph:get. Missing or hidden: 404 where the command loads it. | ||
--sharing_mode | string | One of private|public|unlisted. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--collaborators | json | Complete replacement list of {"email":"person@example.com","role":"viewer|editor|admin"} as JSON or @file.json; role defaults to viewer. Omit to keep collaborators and repository roles; [] removes everyone except owners. | ||
--people | json | Change only named people, keeping everyone else: JSON {"add":[{"email":"person@example.com","write":true}],"remove":["email@example.com",{"user_id":"account-id"}],"set":[{"email":"person@example.com","write":false,"admin":false}]} or @file.json. Add only raises roles; set assigns an exact role, including lowering. Roles are the write and admin flags; a key not shown here, such as role, is refused before anything is sent. Name each account in only one list. Cannot combine with --collaborators. Graph removals/set above 1000 nodes are refused with 422 before any write. | ||
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Select a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Confirm forced compute:release-all --force. Other runtime commands do not read --yes. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Set a node public.
flywheel nodes:sharing:set --node_id n_abc --sharing_mode publicOutput
Default format: json.
| Field | Type |
|---|---|
node_id | string |
owner_user_id | string |
owner_email (optional) | string | null |
is_owner | boolean |
is_private | boolean |
effective | object |
link | object |
link_write | boolean |
public | object |
users | array<object> |
sharing_mode | "private" | "public" | "unlisted" |
visibility | "private" | "shared" | "unlisted" | "public" |
collaborators | array<object> |
updated_at | string |