# members

> Every coline members command, with its flags and the action it runs.

Source: https://docs.coline.app/cli/reference/members

{/* Generated by apps/docs/scripts/cli-reference.ts from coline's command tree and the cli action catalog. Don't edit it: run `pnpm --filter @colineapp/docs cli:reference`. */}

Every `coline members` command, 4 in all.

## members invites revoke

Revokes a pending invite, so its link stops working.

It removes or overwrites something, so it runs only with --confirm.

```text
coline members invites revoke [flags]
```

**Action** `members.invites.revoke` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag               | What it does                                       |
| ------------------ | -------------------------------------------------- |
| `--invite-id <id>` | inviteId from list\_members. Required.             |
| `--input <file>`   | Read the input as JSON from a file; - reads stdin. |

```bash
coline members invites revoke -w acme --invite-id <invite-id> --confirm
coline members invites revoke -w acme --json '{"inviteId":"<invite-id>"}' --fields id --confirm
```

## members list

Lists the people in a team workspace with their roles, and the invites still waiting to be accepted.

It changes nothing.

```text
coline members list [flags]
```

**Action** `members.list` · **Effect** read, changes nothing · **Can wait for your approval** no · **Scope** `workspace.read` · **Workspace** yes, `-w`

| Flag             | What it does                                       |
| ---------------- | -------------------------------------------------- |
| `--input <file>` | Read the input as JSON from a file; - reads stdin. |

```bash
coline members list -w acme
coline members list -w acme --json '{}' --fields id
```

## members remove

Removes someone from a team workspace; they lose access right away. Only when the person clearly asks for it.

It removes or overwrites something, so it runs only with --confirm.

```text
coline members remove [flags]
```

**Action** `members.remove` · **Effect** destructive, runs only with `--confirm` · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                         | What it does                                       |
| ---------------------------- | -------------------------------------------------- |
| `--workspace-member-id <id>` | workspaceMemberId from list\_members. Required.    |
| `--input <file>`             | Read the input as JSON from a file; - reads stdin. |

```bash
coline members remove -w acme --workspace-member-id <workspace-member-id> --confirm
coline members remove -w acme --json '{"workspaceMemberId":"<workspace-member-id>"}' --fields id --confirm
```

## members update-role

Changes a member's role (admin, member or guest; owner only by an owner). Only when the person asks for it.

```text
coline members update-role [flags]
```

**Action** `members.updateRole` · **Effect** write · **Can wait for your approval** no · **Scope** `tools.write` · **Workspace** yes, `-w`

| Flag                         | What it does                                                                                                   |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `--workspace-member-id <id>` | workspaceMemberId from list\_members. Required.                                                                |
| `--role <text>`              | null: no built-in role, only the custom roles they have. Required. One of `owner`, `admin`, `member`, `guest`. |
| `--input <file>`             | Read the input as JSON from a file; - reads stdin.                                                             |

```bash
coline members update-role -w acme --workspace-member-id <workspace-member-id> --role owner
coline members update-role -w acme --json '{"workspaceMemberId":"<workspace-member-id>","role":"owner"}' --fields id
```
