# cow segments

> Part of the Cowliss docs. Markdown for every page: append `index.md` to its URL. Site map: /llms.txt

<!-- GENERATED by apps/docs/scripts/generate-cli-reference.ts. Do not edit. Regenerate with `pnpm -F cowliss-docs generate`. -->

Computed audiences: predicate definitions, preview, member lists, and the recomputation lifecycle.

`cow segments [options] [command]`

### cow segments create

Create a segment

`cow segments create [options]`

**Options**

| Flag | Description |
| --- | --- |
| `--name <name>` |  |
| `--app-id <appId>` | appId is the appId in the app's cow.json. |
| `--description <description>` |  |
| `--definition <json>` |  |

### cow segments preview

Preview a draft definition

`cow segments preview [options]`

**Options**

| Flag | Description |
| --- | --- |
| `--app-id <appId>` | appId is the appId in the app's cow.json. |
| `--definition <json>` |  |

### cow segments list

List segments

`cow segments list [options]`

**Options**

| Flag | Description |
| --- | --- |
| `--cursor <cursor>` |  |
| `--limit <n>` |  |
| `--q <q>` |  |
| `--app-id <appId>` |  |

### cow segments get

Fetch one segment with its member count

`cow segments get [options] <id>`

### cow segments update

Update a segment

`cow segments update [options] <id>`

**Options**

| Flag | Description |
| --- | --- |
| `--name <name>` |  |
| `--description <description>` |  |
| `--definition <json>` |  |

### cow segments delete

Delete a segment

`cow segments delete [options] <id>`

### cow segments listMembers

List a segment's members

`cow segments listMembers [options] <id>`

**Options**

| Flag | Description |
| --- | --- |
| `--cursor <cursor>` |  |
| `--limit <n>` |  |
