← All tools

@marp-team/marp-cli

Popularity 65 Updated Development & Build

A CLI interface for Marp and Marpit based converters

npmauto-collected

Installation

npm
npm install -g @marp-team/marp-cli

Install with npm.

@marp-team/marp-cli

A CLI interface, for Marp (using @marp-team/marp-core) and any slide deck converter based on Marpit framework.

It can convert Marp / Marpit Markdown files into static HTML / CSS, PDF, PowerPoint document, and image(s) easily.

<p align="center" <img src="https://raw.githubusercontent.com/marp-team/marp-cli/main/docs/images/marp-cli.gif" / </p

Try it now!

npx

npx (npm exec) is the best way to use the latest Marp CLI if you wanted one-shot Markdown conversion without install. Just run below if you have installed Node.js v18 and later.

# Convert slide deck into HTML
npx @marp-team/marp-cli@latest slide-deck.md
npx @marp-team/marp-cli@latest slide-deck.md -o output.html

# Convert slide deck into PDF
npx @marp-team/marp-cli@latest slide-deck.md --pdf
npx @marp-team/marp-cli@latest slide-deck.md -o output.pdf

# Convert slide deck into PowerPoint document (PPTX)
npx @marp-team/marp-cli@latest slide-deck.md --pptx
npx @marp-team/marp-cli@latest slide-deck.md -o output.pptx

npx @marp-team/marp-cli@latest -w slide-deck.md

Server mode (Pass directory to serve)

npx @marp-team/marp-cli@latest -s ./slides


> [!IMPORTANT]
> You have to install any one of [Google Chrome], [Microsoft Edge], or [Mozilla Firefox] to convert slide deck into PDF, PPTX, and image(s).

[google chrome]: https://www.google.com/chrome/
[microsoft edge]: https://www.microsoft.com/edge
[mozilla firefox]: https://www.mozilla.org/firefox/new/

### Container image

Don't you like installing Node.js and Chrome to local? We have an official container image that is ready to use CLI.

[marp-cli-docker]: https://hub.docker.com/r/marpteam/marp-cli/

#### [Docker Hub][marp-cli-docker]

docker pull marpteam/marp-cli

#### GitHub Container Registry

docker pull ghcr.io/marp-team/marp-cli

Install