Render Mermaid from your terminal.
The line9 CLI is free for personal use — hobby projects, learning, OSS. Need it at work? See pricing for the commercial Pro line.
macOS
curl -fsSL https://line9.ai/install.sh | sh brew install line9-ai/line9/line9 Linux
curl -fsSL https://line9.ai/install.sh | sh brew install line9-ai/line9/line9 Windows
irm https://line9.ai/install.ps1 | iex Run line9 bootstrap once to prime every coding agent you use — Claude Code,
Codex — to render diagrams through the CLI. It writes to your user-level config, so the
capability follows you into every project. Today this sets up render instructions; richer
priming is on the way.
line9 bootstrap Prefer not to pipe a script? Grab a pre-built binary for your platform from the GitHub releases page, unpack it, and move the line9 binary onto
your PATH.
Each release ships a SHA256SUMS.txt. After
downloading, confirm the binary matches its published SHA-256:
shasum -a 256 -c SHA256SUMS.txt Installed via Homebrew? Run brew uninstall line9. Installed via the script or a manual download? Delete the line9 binary from your PATH — the CLI keeps no other system state.