Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 64 additions & 2 deletions apps/docs/content/docs/cli/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8849,12 +8849,12 @@ sim workspaces fork-resources [options]

API request and response schemas: [listWorkspaceForkResources](/api-reference/workspace-sync/listWorkspaceForkResources).

### sim workspaces members
### sim workspaces members list [#sim-workspaces-members]

List workspace members

```bash
sim workspaces members [options]
sim workspaces members list [options]
```

**Options**
Expand All @@ -8869,6 +8869,68 @@ sim workspaces members [options]

API request and response schemas: [listWorkspaceMembers](/api-reference/workspaces/listWorkspaceMembers).

### sim workspaces members remove

Remove workspace member (OAuth login or personal API key required)

This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end.

```bash
sim workspaces members remove <userId> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `-y, --yes` | Yes | Confirm this operation. |

</CommandTable>

API request and response schemas: [removeWorkspaceMember](/api-reference/workspaces/removeWorkspaceMember).

### sim workspaces members update

Update workspace member (OAuth login or personal API key required)

```bash
sim workspaces members update <userId> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--role <value>` | Yes | New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here. Accepted values: `admin`, `write`, `read`. |

</CommandTable>

API request and response schemas: [updateWorkspaceMember](/api-reference/workspaces/updateWorkspaceMember).

### sim workspaces list

List workspaces
Expand Down
64 changes: 63 additions & 1 deletion apps/docs/content/docs/cli/workspaces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ API request and response schemas: [getWorkspace](/api-reference/workspaces/getWo
### List workspace members

```bash
sim workspaces members [options]
sim workspaces members list [options]
```

**Options**
Expand All @@ -59,6 +59,68 @@ sim workspaces members [options]

API request and response schemas: [listWorkspaceMembers](/api-reference/workspaces/listWorkspaceMembers).

### Update workspace member

OAuth login or personal API key required.

```bash
sim workspaces members update <userId> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--role <value>` | Yes | New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here. Accepted values: `admin`, `write`, `read`. |

</CommandTable>

API request and response schemas: [updateWorkspaceMember](/api-reference/workspaces/updateWorkspaceMember).

### Remove workspace member

OAuth login or personal API key required.

This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end.

```bash
sim workspaces members remove <userId> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `-y, --yes` | Yes | Confirm this operation. |

</CommandTable>

API request and response schemas: [removeWorkspaceMember](/api-reference/workspaces/removeWorkspaceMember).

### Create workspace invitations

OAuth login or personal API key required.
Expand Down
Loading
Loading