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

# ravion membership

> Invite, list, update roles for, and remove members of a Ravion organization using the `ravion membership` CLI command group and its aliases.

## `ravion membership`

Manage organization memberships

**Aliases:** `memberships`

### `ravion membership accept`

Accept Membership Invitation

```bash theme={null}
ravion membership accept <id> [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--json` | | emit response as JSON |

### `ravion membership assignable-roles`

List Assignable Member Roles

```bash theme={null}
ravion membership assignable-roles [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--action <string>` | | Create is the default. Update requires the member being edited. Available values: create, update. |
| `--json` | | emit response as JSON |
| `--target-id <string>` | | Existing membership ID; valid only for update. |
| `-v, --verbose` | | show full output |

### `ravion membership create`

Create Membership

```bash theme={null}
ravion membership create [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--email <string>` | yes | email |
| `--json` | | emit response as JSON |
| `--role <roles>` | | Deprecated: use roles. Writing it sets `roles` to this one role; it cannot be sent with `roles`. `OWNER` is accepted as `owner`. Reads return the member's role with the most access, or its first custom role. |
| `--roles <owner>` | | The roles the member holds across the organization, each a system-managed role key (owner, `platform-admin`, `operator`, `manager`, `read-only` or `billing`) or a custom role ID. A member holds at least one. Reads list system-managed roles in that order, then custom roles by name. Setting `roles` replaces the whole set. Roles other than `owner` require policy administration to be enabled for the organization, and the caller can add or remove only roles whose permissions it already holds. |

### `ravion membership delete`

Delete Membership

```bash theme={null}
ravion membership delete <id> [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `-y, --yes` | | skip confirmation prompt |

### `ravion membership get`

Get Membership by id

```bash theme={null}
ravion membership get <id> [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--json` | | emit response as JSON |

### `ravion membership get-invitation`

Get Membership Invitation by token

```bash theme={null}
ravion membership get-invitation <invitationToken> [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--json` | | emit response as JSON |

### `ravion membership list`

List Memberships

```bash theme={null}
ravion membership list [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--cursor <string>` | | cursor |
| `--json` | | emit response as JSON |
| `--limit <int>` | | limit |
| `-v, --verbose` | | show full output |

### `ravion membership update`

Patch Membership

```bash theme={null}
ravion membership update <id> [flags]
```

**Flags:**

| Flag | Required | Description |
| - | - | - |
| `--json` | | emit response as JSON |
| `--role <roles>` | | Deprecated: use roles. Writing it sets `roles` to this one role; it cannot be sent with `roles`. `OWNER` is accepted as `owner`. Reads return the member's role with the most access, or its first custom role. |
| `--roles <owner>` | | The roles the member holds across the organization, each a system-managed role key (owner, `platform-admin`, `operator`, `manager`, `read-only` or `billing`) or a custom role ID. A member holds at least one. Reads list system-managed roles in that order, then custom roles by name. Setting `roles` replaces the whole set. Roles other than `owner` require policy administration to be enabled for the organization, and the caller can add or remove only roles whose permissions it already holds. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.