mermaid-cli-batch

A command line tool to process multiple diagrams in one pass into SVG images.

mermaid-cli-batch is a npm/node based command-line tool to process Mermaid diagram definition files in batches. For instance, to convert all .mmd files to SVG images, run the command:

npx mermaid-cli-batch --input *.mmd

List possible tool settings by issuing the command:

npx mermaid-cli-batch -h

mermaid-cli-batch has a peer dependency to Playwright that you have to install by yourself prior of using the package:

npm i playwright
npx playwright install chromium

This allows you to update playwright independently of mermaid-cli-batch!