DeckHTML converts HTML from local files, standard input, or URLs into PowerPoint (.pptx) or PNG output.
- Node.js 18 or newer
- A Chromium-based browser for local conversion. DeckHTML uses Playwright's browser bundle when available; set
--executable-pathorDECKHTML_CHROMIUM_EXECUTABLE_PATHto use a specific Chromium binary.
Run directly with npx:
npx -y @deckflow/deckhtml@latest index.html -o deck.pptxOr install the CLI globally:
npm install -g @deckflow/deckhtml
deckhtml --version
deckhtml index.html -o deck.pptxOpen deck.pptx in PowerPoint to review the result.
# Read HTML from stdin
generate-html | deckhtml - -o deck.pptx
# Combine HTML files into a deck in argument order
deckhtml cover.html agenda.html conclusion.html -o deck.pptx
# Convert a hosted page
deckhtml https://example.com/deck.html -o deck.pptx
# Render PNG frames instead of a PPTX
deckhtml index.html --format png -o framesLocal conversion is the default when no API key is configured and does not require authentication:
deckhtml index.html --mode local -o deck.pptxCloud mode supports rate-limited guest conversion. Sign in to use authenticated cloud access; --embed-fonts remains cloud-only:
deckhtml auth login
deckhtml index.html --mode cloud --embed-fonts -o deck.pptxFor CI and agent environments, provide DECKHTML_API_KEY instead of storing credentials locally:
export DECKHTML_API_KEY=your-api-key
deckhtml index.html --mode cloud --embed-fonts -o deck.pptx- Read concepts.md to understand how HTML becomes a deck.
- Read architecture.md for the conversion pipeline.
- Browse the CLI documentation for all commands and flags.