Setting the file. One moment.
Subchapter 4.14
references/templates.mdMarkdown2 KBView on GitHub
Detailed flag specifications for resend templates commands.
| Flag | Type | Default | Description |
|---|
--limit <n> | number | 10 | Max results (1-100) |
--after <cursor> | string | — | Forward pagination |
--before <cursor> | string | — | Backward pagination |
| 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
Argument: <id|alias> — Template ID or alias
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.
Argument: <id|alias> — Promotes draft to published.
Argument: <id|alias> — Creates a copy as draft.
Argument: <id|alias>
| Flag | Type | Required | Description |
|---|---|---|---|
--yes | boolean | Yes (non-interactive) | Skip confirmation |
Open a template (or the templates list) in the Resend dashboard.
Argument: [id] — Template ID (omit to open the list)