Command

nylas template create

Create hosted template

Written by Qasim Muhammad Staff SRE

What does nylas template create do?

The nylas template create command creates hosted template. It is part of the Hosted Templates commands, which application or grant-scoped templates managed via the Nylas API.

Usage

nylas template create

Flags

FlagDescription
--body stringTemplate body HTML
--body-file stringRead template body HTML from a file
--engine stringTemplate engine
--grant-id stringGrant ID or email for grant-scoped templates
--name stringTemplate name
--scope stringTemplate scope: app or grant
--subject stringTemplate subject
--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 create command creates hosted template.

JSON output for scripting

nylas template create --json

Filter by body

nylas template create --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 create --help for full help output.