# templates Detailed flag specifications for `resend templates` commands. --- ## templates list | Flag | Type | Default | Description | |------|------|---------|-------------| | `--limit ` | number | 10 | Max results (1-100) | | `--after ` | string | — | Forward pagination | | `--before ` | string | — | Backward pagination | --- ## templates create | Flag | Type | Required | Description | |------|------|----------|-------------| | `--name ` | string | Yes | Template name | | `--html ` | string | One of html/html-file/react-email | HTML body with `{{{VAR_NAME}}}` placeholders | | `--html-file ` | string | One of html/html-file/react-email | Path to HTML file (use `"-"` for stdin) | | `--react-email ` | string | One of html/html-file/react-email | Path to React Email template (.tsx) — bundles and renders to HTML | | `--subject ` | string | No | Email subject | | `--text ` | string | No | Plain-text body | | `--text-file ` | string | No | Path to plain-text file (use `"-"` for stdin) | | `--from
` | string | No | Sender address | | `--reply-to
` | string | No | Reply-to address | | `--alias ` | string | No | Lookup alias | | `--var ` | string[] | No | Variables: `KEY:type` or `KEY:type:fallback` | Variable types: `string`, `number` --- ## templates get **Argument:** `` — Template ID or alias --- ## templates update **Argument:** `` — 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:** `` — Promotes draft to published. --- ## templates duplicate **Argument:** `` — Creates a copy as draft. --- ## templates delete **Argument:** `` | 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)