Marp CLI
$ marp Official Low RiskMarp CLI (@marp-team/marp-cli) turns Markdown files separated by --- into standalone HTML presentations, PDFs, PowerPoint .pptx decks, or slide thumbnails. HTML export works with pure Node.js, while PDF/PPTX/image rendering invokes local Chromium/Chrome.
brew install marp-cli marp compiles local Markdown slide decks directly to HTML, PDF, or PPTX in one command.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive compilation from Markdown to HTML/PDF/PPTX with clear exit codes.
- Non-interactive single-command builds via
-o - Supports
marp.config.js/package.jsonconfiguration
Restricts raw inline HTML (--html) and local file access in PDF/PPTX (--allow-local-files) by default for security.
- Raw HTML disabled unless
--htmlis explicitly passed - Local file reads during headless Chrome rendering blocked unless
--allow-local-filesis set
HTML builds run anywhere Node.js exists; --pdf / --pptx requires Chrome, Chromium, or Edge installed locally.
npm install -g @marp-team/marp-cliandbrew install marp-cli
Great agent workflow: LLMs write clean Markdown decks and marp renders polished slides.
- Exports HTML, PDF, PPTX, and PNG thumbnails from one Markdown source
Official Marp Team repository (marp-team/marp-cli) actively maintained under MIT.
- Official Marp GitHub organization
Clear README and CLI --help documentation.
- GitHub README and
marp --help
Security, Auth & Guardrails
No credentials required; pure local CLI converter.
Free open-source software (MIT).
# Marp CLI Agent Rules - Default to HTML output (`-o slides.html`) when headless Chrome/Chromium is unavailable; pass `--pdf` only when a browser binary is present. - Only enable `--html` or `--allow-local-files` when compiling trusted Markdown sources. - Do not invoke `--server` or `--watch` synchronously without a timeout.
Agent-Ready Command Recipes
Safe Read-Only Queries
marp --version
Prints the installed @marp-team/marp-cli and Marpit engine versions.
Controlled Writes & Previews
marp slides.md -o dist/slides.html
Compiles slides.md into a self-contained HTML presentation without needing Chrome.
Strengths for Agents
- + Secure defaults: blocks raw HTML (
--html) and local file reads (--allow-local-files) unless explicitly opted in. - + Exports HTML, PDF, PPTX, and PNG from simple
----delimited Markdown. - + HTML output works completely browser-free in pure Node.js.
Caveats & Pitfalls
- ! Generating
--pdf,--pptx, or images requires Chrome, Chromium, or Edge on the host. - !
--serverand--watchmodes run persistently and block unless backgrounded.