Vivliostyle CLI

install

# Node.js
pnpm add -g @vivliostyle/cli

usage

mkdir <dir>
cd <dir>
vivliostyle init
subl vivliostyle.config.js
# Edit it as needed

I don't know why, but sometimes after you use "vivliostyle preview", you need to used Task Manager to find and stop the (multi-) chromium process.

vivliostyle preview
# Build html, pdf
vivliostyle build
# Build epub
vivliostyle build --format epub -o <file>.epub

reference

appdedix

vivliostyle_01 vivliostyle_02 vivliostyle_03