Render Mermaid diagrams from the command line using Bun and
@mermaid-js/mermaid-cli.
npm install -g fishgirlor:
bun add -g fishgirlfishgirl --input diagram.mmd --output diagram.svgOptions:
-i, --input <file> Input Mermaid file (required)
-o, --output <file> Output file (required)
-f, --format <format> Output format: svg, png, pdf (default: svg)
-t, --theme <theme> Mermaid theme
-b, --background <color> Background color, such as transparent or #ffffff
-w, --width <px> Viewport width in pixels
-H, --height <px> Viewport height in pixels
-s, --scale <number> Device scale factor
-p, --pdf-fit Fit PDF to page
-c, --config <file> Mermaid config JSON file
-q, --quiet Suppress log output
-h, --help Show help
bun install
bun run typecheck
bun run index.ts --help