Files
oam/knowledge base/mermaid-cli.md
2023-04-08 17:05:55 +02:00

734 B

mermaid-cli

CLI for mermaid. Takes a mermaid definition file as input and generates an svg, png or pdf file as output.

Table of contents

  1. TL:DR
  2. Further readings
  3. Sources

TL:DR

# Installation.
npm install -g '@mermaid-js/mermaid-cli'

# Convert mermaid files to SVG.
mmdc -i 'input.mmd' -o 'output.svg'

Further readings

Sources

All the references in the further readings section, plus the following: