hosted:repository:member:set

Add a collaborator or change their role.

Reference for flywheel hosted:repository:member:set.

Add a collaborator to a hosted repository or change their role, changing who can read the repository. --role is viewer, editor, or admin; the owner role changes only through hosted:repository:transfer. The change takes effect on the hosted copy immediately.

Command Group

Hosted Repository

Summary

Add a collaborator or change their role.

Usage

flywheel hosted:repository:member:set <FLAGS> <repository_id> <principal_id>

Arguments

ArgumentRequiredChoicesDescription
<repository_id>YesHosted repository identifier.
<principal_id>YesCollaborator principal identifier.

Required flags

FlagValueDefaultChoicesDescription
--rolestringviewer, editor, adminRole to grant: viewer, editor, or admin. The owner role changes only through ownership transfer.

Optional flags

FlagValueDefaultChoicesDescription
--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

Grant editor access to a collaborator's user_id.

flywheel hosted:repository:member:set 0f3a2f6e-6a1a-4c17-9a0e-3f9a2b1c4d5e 9f21c4a8-6b3d-4e17-8a2f-5c9d7b1e3f42 --role editor