@pdfweave/cli
v0.2.0
Published
CLI tool for pdfweave - generate PDFs, convert images, validate templates
Downloads
209
Maintainers
Readme
@pdfweave/cli
@pdfweave/cli is the command-line interface for PDFweave JSON-first PDF workflows. PDFweave is a fork of upstream pdfme, and this package keeps that lineage while using PDFweave package names, binary names, and runtime branding.
Install
npm install @pdfweave/cliFor global command use:
npm install -g @pdfweave/cliUsage
pdfweave --help
pdfweave validate template.json
pdfweave generate job.json --output output.pdf
pdfweave doctor job.jsonProgrammatic consumers usually use the library packages directly:
import { generate } from '@pdfweave/generator';
import { text } from '@pdfweave/schemas';Notes
The CLI expects Node.js 20 or later.
Automatic CJK font downloads are cached under ~/.pdfweave/fonts.
Existing ~/.pdfme/fonts caches are migrated on first use.
Links
License
MIT, same as upstream pdfme.
