Documentation
ReferenceCLICommandstemplates

templates

List the email and SMS templates of an environment, create them in the workspace, push, pull and delete them.

The communication templates guide covers the folder layout. push and pull always take --env, with no default.

templates list

nulvless templates list --env <environment> [--channel <channel>]

Lists the templates of an environment and what happens to each: default is the platform template, customized replaces it in the languages shown, and custom is a template of your own.

nulvless templates list --env main --channel email
--env <environment>Required

Environment slug, such as main or staging.

--channel <channel>email | sms

Only one channel.


templates new

nulvless templates new <slug> [--template <example>] [--channel <channel>]

Creates nulvless/templates/<channel>/<slug>/ in the workspace. Nothing changes in an environment until you push it.

nulvless templates new welcome-user --template welcome-user
nulvless templates new order-shipped --channel sms
<slug>Required

Template slug. A platform slug such as welcome-user replaces that template.

--template <example>

Start from an example. nulvless examples --kind template lists them.

--channel <channel>email | smsdefault email

Channel of a template started from scratch.


templates push

nulvless templates push [slugs...] --env <environment>

Creates or updates each language of each template in the environment. Pushing to main asks for confirmation.

nulvless templates push --env staging
nulvless templates push welcome-user --env main --yes
[slugs...]

Templates to push, by slug or channel/slug. Defaults to every folder in nulvless/templates.

--env <environment>Required

Environment to change.


templates pull

nulvless templates pull [slugs...] --env <environment>

Writes the templates the environment stores into the workspace — your own and the platform templates you customized — such as changes made in the console. Asks before overwriting a folder.

[slugs...]

Templates to pull. Defaults to all of them.

--env <environment>Required

Environment to read from.


templates delete

nulvless templates delete <template> --env <environment> [--language <language>]

Deletes a template from an environment, in every language or only the one you pass. It asks first and says what happens next: a customized platform template goes back to the default, a deleted language falls back to another variant of the same language, such as es-MX for es-AR, then to en-US — or to the oldest language left when neither remains — and a template of your own with nothing left stops sending. The folder in the workspace stays; the CLI warns when the next push would send the deleted language back.

nulvless templates delete enterprise-contact-confirmation --env main --language pt-BR
nulvless templates delete order-shipped --env staging --yes
<template>Required

Template slug, or channel/slug when the slug is in both channels.

--env <environment>Required

Environment to delete from.

--language <language>

Only this language, such as pt-BR. Without it, every language goes.

On this page