Install
This is a stub page!
There are two ways to use Marp, through a command-line interface (Marp CLI) or through a graphical user interface (VS Code extension). To start authoring presentations, you must install either the CLI or the VS Code exension.
Should I use the Marp CLI or Marp for VS Code?
Basic Comparison
Marp for VS Code | Marp CLI | |
---|---|---|
Editor | VS Code | Any editor |
Live Preview | Yes | Yes |
Export Method | Click to export | Command Line |
Use Marp plugins? | No | Yes |
Marp for VS Code
If you are not familiar with the command line, use the VS Code extension without hesitation! All of the basic Marp features are available in Marp for VS Code.
Even if you are CLI savvy, you may prefer to author presentations through Marp for VS Code. VS Code has many convenient features for authoring a slide deck, including Marp syntax completion and live preview.
Marp CLI
Using Marp CLI is suited for following:
- Authoring Markdown and theme CSS with your favorite editor (such as vim)
- Batch processing
- Combination with other tools (through piping and redirection)
- Continuous Integration (CI)
- Server-side conversion
- Set advanced configuration of Marp
- Use Marp in Node.js project
- Use Marp / Marpit / markdown-it plugins
- Use the other Marpit flavored engine
Installing Marp for VS Code
- Install Visual Studio Code.
- Install the Marp for VS Code extension.
- Create and open a new Markdown file (with
.md
extension). - Select the
Toggle Marp feature for current Markdown
command from the Marp icon in editor actions (toolbar). This command will add Marp to the front-matter of your Markdown file:- ---
- marp: true
- ---
- Open VS Code Markdown preview, and start writing your presentation!
Installing Marp CLI
Homebrew (macOS)
- brew install marp-cli
Scoop (Windows)
- scoop install marp
Node.js
If you have installed Node.js >= 12, you can try one-shot conversion without installing powered by npx
(npm exec
).
- npx @marp-team/marp-cli@latest markdown.md
Install to Node project
- npm install --save-dev @marp-team/marp-cli
- npx marp markdown.md
- yarn add --dev @marp-team/marp-cli
- yarn exec markdown.md
You can also install the marp
command globally, but it is not recommended.
Standalone binary
➡️ Download the latest standalone binary from the GitHub release page...
Docker
➡️ Check out the overview of an official container in Docker Hub...