> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# squarecloud workspace member

> 管理一个 workspace 的成员。

添加、更新和移除 workspace 成员，并生成用于加入 workspace 的邀请码。`<group>` 为 `owner`、`admin`、`maintain`、`manager` 或 `view` 之一：`owner` 和 `admin` 拥有完整管理权限，`maintain` 增加操作性权限，`manager` 涵盖监控和生命周期控制，`view` 为只读。

```bash theme={null}
squarecloud workspace member invite-code
# 生成你自己的一次性邀请码，有效期为 5 分钟。将它分享给 workspace 拥有者或管理员。
```

```bash theme={null}
squarecloud workspace member add <workspaceID> <inviteCode> <group>
# 将生成 <inviteCode> 的用户以指定权限组添加到 workspace 中。
```

```bash theme={null}
squarecloud workspace member update <workspaceID> <memberID> <group>
# 更改现有成员的权限组。
```

```bash theme={null}
squarecloud workspace member remove <workspaceID> <memberID>
# 从 workspace 中移除一名成员。
```

`remove` 子命令具有破坏性：移除成员前会要求 `y/N` 确认。传入 `-y`/`--yes` 可跳过该提示。

```bash theme={null}
squarecloud workspace member remove <workspaceID> <memberID> -y
# 移除成员，不询问确认。
```

使用 `squarecloud workspace member --help` 获取有关此命令的更多信息。
