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

# List Template

> List templates for a SuprSend workspace

List templates in a workspace. Returns name, slug, status, enabled channels, and last updated timestamp for each template. Defaults to listing live templates.

## Syntax

```bash theme={"system"}
suprsend template list [flags]
```

## Flags

| Flag                  | Description                                  | Default  |
| --------------------- | -------------------------------------------- | -------- |
| `-h, --help`          | Show help for the command                    | –        |
| `-l, --limit int`     | Maximum number of templates to return        | `20`     |
| `-f, --offset int`    | Number of templates to skip (for pagination) | `0`      |
| `-m, --mode string`   | Filter by version mode: `live` or `draft`    | `live`   |
| `-o, --output string` | Output format: `pretty`, `yaml`, or `json`   | `pretty` |

## Example

```bash theme={"system"}
# List live templates in the default (staging) workspace
suprsend template list

# List draft templates
suprsend template list --mode draft

# List templates in production workspace
suprsend template list --workspace production

# Paginate: get the second page of 20 templates
suprsend template list --limit 20 --offset 20

# Output as JSON for scripting
suprsend template list --output json
```
