← Files ResendARCHIVED FILE

skills/resend-cli/references/templates.md

2.13 KB · Oct 3, 2026 · 06:02 UTC

↓ Download file

# templates

Detailed flag specifications for `resend templates` commands.

---

## templates list

| Flag | Type | Default | Description |
|------|------|---------|-------------|
| `--limit <n>` | number | 10 | Max results (1-100) |
| `--after <cursor>` | string | — | Forward pagination |
| `--before <cursor>` | string | — | Backward pagination |

---

## templates create

| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--name <name>` | string | Yes | Template name |
| `--html <html>` | string | One of html/html-file/react-email | HTML body with `{{{VAR_NAME}}}` placeholders |
| `--html-file <path>` | string | One of html/html-file/react-email | Path to HTML file (use `"-"` for stdin) |
| `--react-email <path>` | string | One of html/html-file/react-email | Path to React Email template (.tsx) — bundles and renders to HTML |
| `--subject <subject>` | string | No | Email subject |
| `--text <text>` | string | No | Plain-text body |
| `--text-file <path>` | string | No | Path to plain-text file (use `"-"` for stdin) |
| `--from <address>` | string | No | Sender address |
| `--reply-to <address>` | string | No | Reply-to address |
| `--alias <alias>` | string | No | Lookup alias |
| `--var <var...>` | string[] | No | Variables: `KEY:type` or `KEY:type:fallback` |

Variable types: `string`, `number`

---

## templates get

**Argument:** `<id|alias>` — Template ID or alias

---

## templates update

**Argument:** `<id|alias>` — Template ID or alias

Same optional flags as `create` (including `--react-email`, `--text-file`, and `--html-file` with stdin support). At least one required.

---

## templates publish

**Argument:** `<id|alias>` — Promotes draft to published.

---

## templates duplicate

**Argument:** `<id|alias>` — Creates a copy as draft.

---

## templates delete

**Argument:** `<id|alias>`

| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--yes` | boolean | Yes (non-interactive) | Skip confirmation |

---

## templates open

Open a template (or the templates list) in the Resend dashboard.

**Argument:** `[id]` — Template ID (omit to open the list)

SHA-256: 42f0f6d73b25f14a3ccd676e7a31b6634480ced7e5f4f6771dd85c4551136337