> ## 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.

# Get Template

> Get template details including all channel variants and mock data

Retrieve a specific template by slug. Returns full template details — all channel variants, their content, locale and tenant targeting, conditions, and mock data. Use `--mode` to switch between the live and draft versions.

## Syntax

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

## Flags

| Flag                  | Description                                | Default |
| --------------------- | ------------------------------------------ | ------- |
| `-h, --help`          | Show help for the command                  | –       |
| `-g, --slug string`   | Template slug to retrieve *(required)*     | –       |
| `-m, --mode string`   | Version to fetch: `live` or `draft`        | `live`  |
| `-o, --output string` | Output format: `json`, `yaml`, or `pretty` | `json`  |

## Example

```bash theme={"system"}
# Get the live version of a template
suprsend template get --slug order-shipped

# Get the current draft version
suprsend template get --slug order-shipped --mode draft

# Get from production workspace
suprsend template get --slug order-shipped --workspace production

# Output as YAML
suprsend template get --slug order-shipped --output yaml
```
