Skip to main content
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

suprsend template get [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-g, --slug stringTemplate slug to retrieve (required)
-m, --mode stringVersion to fetch: live or draftlive
-o, --output stringOutput format: json, yaml, or prettyjson

Example

# 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