html2pptx-cli
v0.2.0
Published
CLI tool to convert HTML/CSS to editable PowerPoint files via html2pptx.app
Maintainers
Readme
html2pptx-cli
Convert HTML/CSS to fully editable PowerPoint files from the command line.
Powered by html2pptx.app.
Install
npm install -g html2pptx-cliOr use directly with npx:
npx html2pptx-cli convert slides.htmlSetup
html2pptx initThis will prompt you for your API key and save it to ~/.html2pptx/config.json.
Usage
Interactive mode
Run without arguments for a guided experience:
html2pptx convertDirect mode
Pass arguments for scripting and automation:
html2pptx convert ./slides.html -o output.pptx -s 16:9Options
html2pptx convert [options] [input]
Arguments:
input Path to HTML file
Options:
-o, --output <file> Output PPTX filename
-s, --size <size> Slide size: "16:9", "4:3", or "WxH" (e.g. 1920x1080)
--css <file> External CSS file to include
--base-url <url> API base URL (default: "https://html2pptx.app")
-h, --help Display helpGet an API key
Visit html2pptx.app to create an account and get your API key.
License
MIT
