<a id="cli-aws-amplifygen3-templates"></a>

# templates

## Description

Scaffold and validate the HTML templates that override the built-in auth emails, one file per flow at email-templates/<flow>.html. The service applies them only when backend.auth sets platform.customEmail.smtp, the app’s own SMTP server; without it, the built-in emails are sent. Locally, templates apply only when backend.auth names a real SMTP server reachable over TLS (STARTTLS, or implicit TLS on 465); the local Mailpit can’t serve as that server. Use `scaffold` to write starter templates and `validate` to check them against each flow’s allowed variables. Both are local file operations and need no credentials.

## Synopsis

```
templates
```

## Options

*None*

## Available Commands

* [scaffold](scaffold.md)
* [validate](validate.md)
