@better-svelte-email/cli
Command-line tool for Better Svelte Email: run a local email preview with file watching, Tailwind-aware rendering (via @better-svelte-email/server), and an embedded or dev preview app.
Install
npm i -D @better-svelte-email/cli
The executable is bse.
Usage
bse dev [options]
Common options:
| Option | Description |
|---|---|
-p, --port <port> | Main server port (default 3000) |
-d, --dir <directory> | Directory of email templates to watch (default src/lib/emails) |
-c, --custom-css-path <path> | Raw CSS path for customCSS / theme parity |
--preview-dev | Use the local preview-server Vite dev server instead of the bundled preview bundle |
--preview-port <port> | Port for preview-dev (default 3001) |
--no-hmr | Disable live reload |
--resend-api-key <key> | Resend API key for test sends from the preview UI |
--resend-from <address> | Sender for test emails (default [email protected]) |
--resend-persist | With --resend-api-key, save credentials to .bse/resend.json (gitignored) |
Build note (maintainers)
The published CLI depends on the internal @better-svelte-email/preview-server runtime package. bun run build in this package only builds the CLI itself; the preview runtime is built and published from packages/preview-server.
Monorepo
github.com/Konixy/better-svelte-email — packages/cli.
License
MIT