# Install mermaid-cli with Homebrew

CLI for Mermaid library. Version 11.16.0 via Homebrew; verified 2026-06-30.

## Install

```sh
sudo av install brew:mermaid-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mermaid-cli
```

  Evidence: provider-native install command

## Package facts

- **Package key:** brew:mermaid-cli
- **Package manager:** Homebrew
- **Version:** 11.16.0
- **Source summary:** CLI for Mermaid library
- **Homepage:** <https://github.com/mermaid-js/mermaid-cli>
- **Last updated:** 2026-06-30T20:35:41Z
- **Generated:** 2026-08-03T00:40:33+00:00

## Executables

- mmdc (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 11.16.0
## Project history and usage

mermaid-cli is the command-line front end for Mermaid, the text-to-diagram JavaScript library. The repository describes it as a CLI that takes a Mermaid definition file and produces SVG, PNG, or PDF output; the Mermaid documentation page for the CLI redirects readers to the separate `mermaid-js/mermaid-cli` project.

### Project history

The practical interface is the `mmdc` command, used in documentation builds, CI pipelines, and local authoring workflows where diagrams must be rendered from `.mmd` source files without opening the Mermaid live editor. The package supports global npm installation, Docker-oriented usage, theming, transparent backgrounds, custom CSS injection, and file conversion workflows such as `mmdc -i input.mmd -o output.svg`.

### How it is used

For Homebrew, the package-manager niche is making Mermaid rendering available as a normal system CLI, alongside its npm package identity. It sits between documentation generators and browser automation: users write Mermaid syntax in source-controlled text files, then render stable image or document artifacts for READMEs, static sites, and release documentation.

### Sources

- <https://formulae.brew.sh/formula/mermaid-cli>
- <https://github.com/mermaid-js/mermaid-cli>
- <https://github.com/mermaid-js/mermaid-cli/releases>
- <https://mermaid.js.org/config/mermaidCLI.html>


## Security Notes

No matching local secret-handling manifest was found for mermaid-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Combined YAML source

View the package source record on GitHub. [combined/mermaid-cli.yml](https://github.com/automic-vault/db/blob/main/combined/mermaid-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
