All Projects → mermaid-js → Mermaid Cli

mermaid-js / Mermaid Cli

Licence: mit
Command line tool for the Mermaid library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mermaid Cli

Kube No Trouble
Easily check your cluster for use of deprecated APIs
Stars: ✭ 280 (-2.1%)
Mutual labels:  hacktoberfest
Eo Locale
🌏Internationalize js apps 👔Elegant lightweight library based on Internationalization API
Stars: ✭ 290 (+1.4%)
Mutual labels:  hacktoberfest
Summer2021 Internships
Collection of Summer 2022 tech internships!
Stars: ✭ 7,275 (+2443.71%)
Mutual labels:  hacktoberfest
Socks5
A full-fledged high-performance socks5 proxy server written in C#. Plugin support included.
Stars: ✭ 286 (+0%)
Mutual labels:  hacktoberfest
Regommend
Recommendation engine for Go
Stars: ✭ 288 (+0.7%)
Mutual labels:  hacktoberfest
Workflow Core
Lightweight workflow engine for .NET Standard
Stars: ✭ 3,605 (+1160.49%)
Mutual labels:  hacktoberfest
Nestjs Pino
Platform agnostic logger for NestJS based on Pino with REQUEST CONTEXT IN EVERY LOG
Stars: ✭ 283 (-1.05%)
Mutual labels:  hacktoberfest
Developerexcuses
A Mac OS X Screensaver which shows quotes from http://developerexcuses.com, inofficial
Stars: ✭ 290 (+1.4%)
Mutual labels:  hacktoberfest
Patchwork Api
An attempt to reimplement the Minecraft Forge API on Fabric
Stars: ✭ 289 (+1.05%)
Mutual labels:  hacktoberfest
Securedrop
GitHub repository for the SecureDrop whistleblower platform. Do not submit tips here!
Stars: ✭ 3,149 (+1001.05%)
Mutual labels:  hacktoberfest
Docx
a ruby library/gem for interacting with .docx files
Stars: ✭ 288 (+0.7%)
Mutual labels:  hacktoberfest
Fynedesk
A full desktop environment for Linux/Unix using Fyne
Stars: ✭ 286 (+0%)
Mutual labels:  hacktoberfest
Armeria
Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
Stars: ✭ 3,392 (+1086.01%)
Mutual labels:  hacktoberfest
Yii2 Docker
Official Docker images suitable for Yii 2.0
Stars: ✭ 286 (+0%)
Mutual labels:  hacktoberfest
Diff2html Cli
Pretty diff to html javascript cli (diff2html-cli)
Stars: ✭ 287 (+0.35%)
Mutual labels:  hacktoberfest
Client Generator
Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
Stars: ✭ 286 (+0%)
Mutual labels:  hacktoberfest
React Ace
React Ace Component
Stars: ✭ 3,342 (+1068.53%)
Mutual labels:  hacktoberfest
Nimble Snapshots
Nimble matchers for FBSnapshotTestCase.
Stars: ✭ 291 (+1.75%)
Mutual labels:  hacktoberfest
Examples
Example Revel Applications
Stars: ✭ 290 (+1.4%)
Mutual labels:  hacktoberfest
Vue Cli Plugin Electron Builder
Easily Build Your Vue.js App For Desktop With Electron
Stars: ✭ 3,549 (+1140.91%)
Mutual labels:  hacktoberfest

mermaid-cli

This is a command-line interface (CLI) for mermaid. It takes a mermaid definition file as input and generates an svg/png/pdf file as output.

Join our Slack! This project is using Percy.io for visual regression testing. Build, test and deploy

Example Usage

Locate how to call the mmdc executable for your preferred method i.e. Docker, Yarn, NPM, global install, etc. Try these examples to get started quickly.

Convert Mermaid mmd Diagram File To SVG

mmdc -i input.mmd -o output.svg

Create A PNG With A Dark Theme And Transparent Background

mmdc -i input.mmd -o output.png -t dark -b transparent

Piping from stdin

You can easily pipe input from stdin. This example shows how to use a heredoc to send a diagram as stdin to mermaid-cli (mmdc).

cat << EOF  | mmdc
    graph TD
    A[Client] --> B[Load Balancer]
EOF

See All Available Options

mmdc -h

Use Docker:

docker pull minlag/mermaid-cli

or e.g. version 8.8.0

docker pull minlag/mermaid-cli:8.8.0

The container looks for input files in /data. So for example, if you have a diagram defined on your system in /path/to/diagrams/diagram.mmd, you can use the container to generate an SVG file as follows:

docker run -it -v /path/to/diagrams:/data minlag/mermaid-cli -i /data/diagram.mmd

Install locally

Some people are having issue installing this tool globally. Installing it locally is an alternative solution:

yarn add @mermaid-js/mermaid-cli
./node_modules/.bin/mmdc -h

Or use NPM:

npm install @mermaid-js/mermaid-cli
./node_modules/.bin/mmdc -h

Install globally

❗️ We do NOT recommend installing it globally because both YARN and NPM could fail to install a command-line tool globally properly due to weird permission issues. yarn global add @mermaid-js/mermaid-cli or npm install -g @mermaid-js/mermaid-cli

Install with brew

brew install mermaid-cli

Run with npx

npx is installed by default with NPM. It downloads and runs commands at the same time. To use Mermaid CLI with npx, you need to use the -p flag because the package name is different than the command it installs (mmdc). npx -p @mermaid-js/mermaid-cli mmdc -h

Known issues

  1. Linux sandbox issue

For contributors

Contributions are welcome. See the contribution guide.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].