# Install mermaid-cli with Homebrew, Nix, pacman

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: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mermaid-cli
```

  Evidence: nixpkgs package indexes: pkgs/by-name/me/mermaid-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mermaid-cli
```

  Evidence: Arch Linux sync databases: mermaid-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:mermaid-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mermaid-cli>
- **Version:** 11.16.0
- **Source summary:** CLI for Mermaid library
- **Homepage:** <https://github.com/mermaid-js/mermaid-cli>
- **Repository:** <https://github.com/mermaid-js/mermaid-cli>
- **Upstream docs:** <https://github.com/mermaid-js/mermaid-cli#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/@mermaid-js/mermaid-cli/-/mermaid-cli-11.16.0.tgz>
- **Last updated:** 2026-06-30T20:35:41Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mmdc (cli)
- mmdc (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 11.16.0
- Package-manager updated: 2026-06-30
- Local data: ok
- Upstream repository: https://github.com/mermaid-js/mermaid-cli
- info: No cached GitHub release or tag data was available.
## 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.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mermaid-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - mermaid-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/mermaid-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - mermaid-cli - 11.15.0-1: normalized package name match | Arch Linux sync databases: mermaid-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Generate images from Mermaid files | https://github.com/mermaid-js/mermaid-cli


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [terramaid](https://www.automicvault.com/pkg/brew/terramaid/) - Shares av.db curated category or tags: cli, developer-tools, diagrams, documentation, mermaid.
- [dvisvgm](https://www.automicvault.com/pkg/brew/dvisvgm/) - Shares av.db curated category or tags: cli, developer-tools, documentation, pdf, svg.
- [action-docs](https://www.automicvault.com/pkg/brew/action-docs/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [adr-tools](https://www.automicvault.com/pkg/brew/adr-tools/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [adr-viewer](https://www.automicvault.com/pkg/brew/adr-viewer/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [cargo-docset](https://www.automicvault.com/pkg/brew/cargo-docset/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [cheat](https://www.automicvault.com/pkg/brew/cheat/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [context7-mcp](https://www.automicvault.com/pkg/brew/context7-mcp/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [reveal-md](https://www.automicvault.com/pkg/brew/reveal-md/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, documentation, node.

## 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
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
