Download

1

Install locally with npm

You can install MJML on OSX, Linux and Windows using npm.
$ npm init -y && npm install mjml

$ ./node_modules/.bin/mjml index.mjml
2

Add it to your path

For a better experience, add MJML to your path
$ export PATH="$PATH:./node_modules/.bin"

$ mjml index.mjml

Note for Windows users: you may need to replace regular slashes ( / ) with backslashes ( \ ) in all the paths of the above commands.

After the installation

$ mjml -r index.mjml
$ mjml --watch index.mjml -o index.html
$ mjml -r index.mjml -o index.html

Integrate MJML in your workflow