# Preview and screenshot templates from the CLI
URL: https://samva.dev/changelog/preview-and-screenshot-templates-from-the-cli
> Run the visual editor locally with no config, print a rendered fixture, or capture desktop and mobile screenshots in light and dark.
- Published: 2026-10-02
- Tags: cli, templates

Work on a template locally and see exactly what recipients will get, before you publish.

```bash
samva templates dev --open
samva templates render order-shipped --fixture default
samva templates snapshot order-shipped --fixture default
```

`dev` opens the visual editor with no setup. `render` prints a fixture's subject and text, or its HTML. `snapshot` saves desktop and mobile screenshots, light and dark, to `.samva/snapshots`.

**What you need to do.** Local commands now use the compiler your project installs, and a `defineEmail` entry is reported as an error. Move those entries to `defineTemplate` before you upgrade. The [package changelog](https://www.npmjs.com/package/@samva/cli/v/0.5.0) has the rest.

## Links

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

## Related

- [Match conversation senders on actorType sender](/changelog/match-conversation-senders-on-actortype-sender)
- [Get webhooks for opens, clicks, and unsubscribes](/changelog/get-webhooks-for-opens-clicks-and-unsubscribes)
- [All changelog entries](/changelog)
