html-now-cli
v1.0.1
Published
Official command-line client for HTML.now HTML and web document conversion
Maintainers
Readme
HTML.now CLI
Official command-line client for HTML.now. See the conversion API documentation.
Install
npm install --global html-now-cliRequires Node.js 18 or newer and a HTML.now account with an API key and conversion credits.
Authenticate
Create an API key at html.now/dashboard/api-access, then save it locally:
html-now login htmlnow_your_key_hereThe key is stored in ~/.config/html-now/config.json with user-only permissions. For CI, set HTMLNOW_API_KEY instead of saving a key. Never commit the key.
Convert
Find converter slugs in the API documentation, then run:
html-now convert page.html --slug html-to-pdf --output page.pdf
html-now convert page.html --slug html-to-png --output page.pngThe CLI queues the job, waits for completion, and downloads the result. Use --no-wait to return the job immediately, then check it later:
html-now status JOB_ID --json
html-now usage --jsonRun html-now --help for all options.
