Browse DeckHTML CLI workflows for local HTML files, stdin, ordered HTML files, hosted URLs, reports, script-friendly output, and cloud reconstruction.
Convert a local HTML file with the npm package:
npx -y @deckflow/deckhtml@latest index.html -o deck.pptxInstall the CLI globally when you use it often:
npm install -g @deckflow/deckhtml
deckhtml --versionConvert a local HTML file to PPTX:
deckhtml index.htmlThe default output uses the input file name:
index.pptx
Write to a specific output path:
deckhtml index.html -o deck.pptxPipe generated HTML into DeckHTML:
cat index.html | deckhtml - -o deck.pptxUse - as the stdin input placeholder. Provide --output or -o when converting stdin.
Pass files in the order they should appear:
deckhtml title.html agenda.html content.html summary.html -o deck.pptxConvert a hosted HTML deck:
deckhtml https://example.com/deck.html -o deck.pptxWait longer for client-side rendering:
deckhtml https://example.com/deck.html -o deck.pptx --render-wait 9Generate PNG frames from one HTML file:
deckhtml index.html --format png -o framesGenerate PNG frames from multiple explicit HTML files:
deckhtml title.html chart.html appendix.html --format png -o framesGenerate the default PPTX format explicitly:
deckhtml index.html --format pptx -o deck.pptxForce local conversion:
deckhtml index.html -o deck.pptx --mode localLet DeckHTML choose the mode:
deckhtml index.html -o deck.pptx --mode autoForce cloud conversion:
deckhtml index.html -o deck.pptx --mode cloudauto uses cloud mode when an API key is configured and local mode otherwise. Local mode works without authentication.
Rebuild richer presentation objects in cloud mode:
deckhtml index.html \
-o deck.pptx \
--mode cloud \
--embed-fonts \These flags are cloud-only.
Create a report next to the output:
deckhtml index.html -o deck.pptx --reportReturn JSON for scripts and CI:
deckhtml index.html -o deck.pptx --json{
"ok": true,
"input": ["index.html"],
"output": "deck.pptx",
"format": "pptx",
"mode": "local"
}Combine JSON with stdin:
cat index.html | deckhtml - -o deck.pptx --jsonPrint only the final result:
deckhtml index.html -o deck.pptx --quietPrint detailed conversion logs:
deckhtml index.html -o deck.pptx --verboseStart browser login:
deckhtml auth loginSet an API key directly:
deckhtml config set api-key <key>For CI, Docker, and agent environments, set the environment variable:
export DECKHTML_API_KEY=your-api-key
deckhtml index.html -o deck.pptx --mode cloudVerify your credentials:
deckhtml auth statusdeckhtml config set size 1920x1080The default PPTX size is 1920x1080.