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

> Retrieve a notification template by slug from a SuprSend workspace with all channel variants, targeting conditions, and mock data for draft or live.

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 [<slug>] [flags]
```

## Flags

| Flag | Description | Default |
| - | - | - |
| `-h, --help` | Show help for the command | – |
| `-g, --slug string` | Template slug to retrieve (alternative to the positional argument). The slug is required in one of the two forms. | – |
| `-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
```


## Related topics

- [Get Template Detail](https://docs.suprsend.com/reference/get-template-v2.md)
- [Get Template Diff](https://docs.suprsend.com/reference/get-template-diff-v2.md)
- [Commit Template](https://docs.suprsend.com/reference/commit-template-v2.md)
- [CLI Overview](https://docs.suprsend.com/reference/cli-intro.md)
- [Commands and Flags](https://docs.suprsend.com/reference/cli-template-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.