Overview
CLI
After installing the React Email package (or cloning a starter), you can start using the command line interface (CLI).
email dev
Starts a local development server that will watch your files and automatically rebuild your email when you make changes.
Options
--dir
Default: "emails"string
Change the directory of your email templates.
--port
Default: "3000"string
Port to run dev server on
--skip-install
Default: "false"boolean
Do not install dependencies
email export
Generates the plain HTML files of your emails into a out
directory.
Options
--dir
Default: "emails"string
Change the directory of your email templates.
--outDir
Default: "out"string
Change the output directory.
--pretty
Default: "false"boolean
Minify or prettify the generated HTML file.
--plainText
Default: "false"boolean
Set output format as plain text.
email help <cmd>
Shows all the options for a specific command.