# Publish several emails from one template project
URL: https://samva.dev/changelog/publish-several-emails-from-one-template-project
> Register more than one email in a template project. Each is its own template and publication, sharing the project's components, theme, and history.
- Published: 2026-09-27
- Tags: templates, cli, sdk

Keep your password reset, receipt, and welcome emails in one template project. They share components, a theme, and Git history, but each publishes as its own template.

```bash
samva templates add emails/reset.tsx
git add emails && git commit -m "Add reset" && git push origin main
samva templates publish --all
```

**What you need to do.** `samva templates publish` now takes an entry path or `--all`. The old `--template-id` and `--entry` flags are gone. If one email fails, the others still publish and the command exits `1` with the full result, so rerunning is safe.

Moved a file with `git mv`? Run `samva templates move <old-path> <new-path>` to keep its id and history. In the SDK, register a new email with `templates.addEntry`.

## Links

- [CLI](/docs/developers/cli)
- [@samva/cli 0.4.0 on npm](https://www.npmjs.com/package/@samva/cli/v/0.4.0)
- [samva 0.7.0 on npm](https://www.npmjs.com/package/samva/v/0.7.0)

## Related

- [Get webhooks for opens, clicks, and unsubscribes](/changelog/get-webhooks-for-opens-clicks-and-unsubscribes)
- [Add images and fonts to a template workspace](/changelog/add-images-and-fonts-to-a-template-workspace)
- [All changelog entries](/changelog)
