# segments Detailed flag specifications for `resend segments` commands. --- ## segments list | Flag | Type | Default | Description | |------|------|---------|-------------| | `--limit ` | number | 10 | Max results (1-100) | | `--after ` | string | — | Forward pagination | | `--before ` | string | — | Backward pagination | --- ## segments create | Flag | Type | Required | Description | |------|------|----------|-------------| | `--name ` | string | Yes (non-interactive) | Segment name | --- ## segments get **Argument:** `` — Segment UUID --- ## segments delete **Argument:** `` — Segment UUID | Flag | Type | Required | Description | |------|------|----------|-------------| | `--yes` | boolean | Yes (non-interactive) | Skip confirmation | Deleting a segment does NOT delete its contacts. --- ## segments contacts **Argument:** `[segmentId]` — Segment UUID (interactive picker if omitted) | Flag | Type | Default | Description | |------|------|---------|-------------| | `--limit ` | number | 10 | Max results (1-100) | | `--after ` | string | — | Forward pagination | | `--before ` | string | — | Backward pagination | Lists contacts belonging to a segment. Uses `resend.contacts.list({ segmentId })` which maps to `GET /segments/:segment_id/contacts`.