Slidev CLI
$ slidev Official Low RiskSlidev (@slidev/cli) builds interactive code-heavy presentations from Markdown using Vue components, Shiki syntax highlighting, and Vite. While slidev build and slidev export --format pdf work from the CLI, Slidev is optimized around a browser dev server and requires playwright-chromium for PDF/PNG exports.
npm install -g @slidev/cli slidev runs Vite builds and Playwright browser exports locally inside the presentation project directory.
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
Default slidev command launches an interactive Vite dev server and browser; build and export work non-interactively once deps are installed.
- Bare
slidevinvocation starts a blocking dev server slidev buildandslidev export --format pdfrun non-interactively
Pure local build tool, though theme/plugin imports execute project JavaScript/Vue code during Vite bundling.
- No credentials or remote SaaS mutations
- Theme packages run Vite/Node plugins locally
Heavy Node/Vite/Vue ecosystem footprint plus playwright-chromium requirement for slidev export.
- Requires
playwright-chromiumfor PDF/PNG/PPTX export - Interactive theme install prompts if themes are missing
Rich interactive code slides (Monaco, Twoslash, animations), though overkill compared to marp for simple automated PDF decks.
- Feature-rich Vite/Vue presentation engine
Official Slidev project (slidevjs/slidev) actively maintained under MIT.
- Official Slidev GitHub organization
Good docs at sli.dev covering CLI options and exporting.
- Official docs at sli.dev/guide/exporting.html
Security, Auth & Guardrails
No credentials required; local Vite/Node.js build tool.
Free open-source software (MIT).
# Slidev CLI Agent Rules - Run `slidev build` or `slidev export` in CI/agent turns; NEVER launch the interactive `slidev` dev server synchronously. - Ensure `playwright-chromium` is installed before running `slidev export --format pdf`. - Pin theme packages in `package.json` instead of prompting for dynamic theme installs.
Agent-Ready Command Recipes
Safe Read-Only Queries
slidev --version
Displays the installed @slidev/cli version locally.
Controlled Writes & Previews
slidev build slides.md --out dist
Bundles the presentation into static HTML/JS/CSS assets in dist without launching Playwright.
Strengths for Agents
- + Builds rich interactive developer slide decks with code highlighting, diagrams, and Vue components.
- +
slidev buildoutputs a clean deployable static SPA. - +
slidev export --format pdf --with-clickscaptures animated step transitions.
Caveats & Pitfalls
- ! Heavy runtime footprint (Vite, Vue, Playwright Chromium) compared to
marportypst. - ! Running bare
slidevstarts a blocking dev server and can prompt to install missing themes.