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-html

Flags

FlagDescription
--body stringTemplate HTML to render
--body-file stringPath to a file containing template HTML
--data stringInline JSON object with template variables
--data-file stringPath to a JSON file with template variables
--engine stringTemplate engine
--grant-id stringGrant ID or email for grant-scoped templates
--scope stringTemplate scope: app or grant
--strictFail when the template references missing variables
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit 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 --json

Filter by body

nylas template render-html --body <value> --json

Troubleshooting

Command not found or fails

Run `nylas auth config` and `nylas auth login` to authenticate first.

Recommended guides

Run nylas template render-html --help for full help output.