Command
nylas template render-html
Render inline HTML body
Written by Qasim Muhammad Staff SRE
What does nylas template render-html do?
The nylas template render-html command provides render inline HTML body. It is part of the Hosted Templates commands, which application or grant-scoped templates managed via the Nylas API.
Usage
nylas template render-htmlFlags
| Flag | Description |
|---|---|
| --body string | Template HTML to render |
| --body-file string | Path to a file containing template HTML |
| --data string | Inline JSON object with template variables |
| --data-file string | Path to a JSON file with template variables |
| --engine string | Template engine |
| --grant-id string | Grant ID or email for grant-scoped templates |
| --scope string | Template scope: app or grant |
| --strict | Fail when the template references missing variables |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
Examples
The nylas template render-html command provides render inline HTML body.
JSON output for scripting
nylas template render-html --jsonFilter by body
nylas template render-html --body <value> --jsonTroubleshooting
Command not found or fails
Run `nylas auth config` and `nylas auth login` to authenticate first.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Google Calendar API Sync Tokens
Use Google Calendar API sync tokens for incremental event sync, handle the 410 GONE full-resync, and read calendars from the CLI.
Microsoft Graph calendarView Explained
Query the Microsoft Graph calendarView endpoint for events in a date range with recurrences expanded. Compare it to list events and read calendars from the CLI.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Run nylas template render-html --help for full help output.