You may use maizzle directly, with npx:
npx maizzle newThis will start the interactive setup:
Alternatively, you can install it globally:
npm install -g maizzleInteractive mode:
maizzle newScaffold a project from a GitHub starter repo (user/repo):
maizzle new maizzle/maizzleSpecify a target directory:
maizzle new maizzle/maizzle my-projectAutomatically install dependencies:
maizzle new maizzle/maizzle my-project --installUse a specific package manager:
maizzle new maizzle/maizzle my-project --install --pm pnpmStart a local development server:
maizzle servemaizzle dev is an alias for maizzle serve.
Build emails for production:
maizzle build| Option | Description |
|---|---|
-c, --config <path> |
Path to a Maizzle config file |
-o, --output <path> |
Output directory |
--dir <path> |
Source directory for email templates |
--ext <extension> |
Output file extension |
--pretty |
Pretty-print HTML output |
--minify |
Minify HTML output |
--plaintext |
Generate plaintext versions alongside HTML |
When -c, --config is set, the override flags (-o, --dir, --ext, --pretty, --minify, --plaintext) are ignored — your config file is used as-is.
Generate IDE type definitions in .maizzle/. Run after adding new components or composables when you want auto-import types to update without starting the dev server:
maizzle prepareYou may use the make command to scaffold new files for your project.
Create a new email template:
maizzle make:template [filepath]Create a new email layout with the base HTML email structure and a default slot:
maizzle make:layout [filepath]Create a new component with a slot and props:
maizzle make:component [filepath]Create a new maizzle.config.ts file:
maizzle make:config [name]Maizzle documentation is available at https://maizzle.com
The Maizzle framework is open-sourced software licensed under the MIT license.
