# `bird email templates versions list`

## Usage

```bash
bird email templates versions list <template-id> [flags]
```

## Description

List every version of a template (the draft plus all published versions), newest first.

Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.

## Examples

```bash
bird email templates versions list <template-id>
bird email templates versions list <template-id> | jq -r '.data[].id'
bird email templates versions list <template-id> --limit 50 --starting-after <cursor>
```

## Options

#### Pagination

| Name               | Description                                                                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `--ending-before`  | Cursor from the prev_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. |
| `--limit <n>`      | Maximum number of items to return per page.                                                                                                    |
| `--starting-after` | Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.  |

#### Filters

| Name                | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--response-schema` | Print the fields this command returns, then exit |

## Related

| Name                                                                                              | Description                      |
| ------------------------------------------------------------------------------------------------- | -------------------------------- |
| [`bird email templates versions delete`](/docs/cli/reference/email-templates-versions-delete)     | Discard the draft's changes      |
| [`bird email templates versions get`](/docs/cli/reference/email-templates-versions-get)           | Get an email template version    |
| [`bird email templates versions rollback`](/docs/cli/reference/email-templates-versions-rollback) | Roll back an email template      |
| [`bird email templates versions submit`](/docs/cli/reference/email-templates-versions-submit)     | Submit an email template version |