PowerDocs CLI
PowerDocs CLI is the command-line companion of PowerDocs. It turns the same document plans you build in the PowerDocs editor into publication-ready PDF files, but without opening any window: one command, one PDF.
Where the PowerDocs desktop application is the place to write and design your documents, PowerDocs CLI is the place to produce them automatically, as many times as you need, wherever you need.
powerdocs-cli plan.yml user-guide.pdf
Why use PowerDocs CLI?
Producing a PDF by hand is fine once. It becomes a chore when the same document must be regenerated after every change, for every product version, or for dozens of customers. PowerDocs CLI takes that repetitive work off your hands.
- No manual export step: your PDFs are rebuilt automatically, so the published version never lags behind the sources.
- Same result everywhere: the CLI uses the same rendering engine as the PowerDocs application. A PDF generated on a build server looks exactly like the one you preview on your workstation.
- No design work required: PowerDocs ships with ready-to-use themes. You can produce clean, professional documents without ever touching a stylesheet.
- Runs anywhere: no graphical interface, no display, no desktop session. It works on servers, in containers and on build agents.
- Fast: a multi-page document is generated in a fraction of a second, which makes large batches practical.
Typical use cases
Continuous documentation (CI/CD)
Keep your documentation next to your code, in Markdown, and let your pipeline publish it. Every time a change is merged, your CI/CD system (GitHub Actions, GitLab CI/CD, Azure DevOps, Jenkins…) calls PowerDocs CLI and attaches the fresh PDF to the build or to the release.
Typical outcomes:
- The user guide shipped with each release always matches the version being delivered.
- Reviewers get a readable PDF with every merge request, not just a list of changed Markdown files.
- The document version, change history and classification in the PDF come straight from your plan, with no copy-paste.
Automated document generation, without managing themes
Many teams need good-looking documents but have no time, or no desire, to maintain a visual identity for each of them. With PowerDocs CLI:
- Pick one of the built-in themes (corporate, minimal, modern, warm…) by simply naming it on the command line.
- Or do nothing at all: the default PowerDocs theme is applied automatically.
- Cover page, table of contents, change history, headers and footers are generated for you from the document plan.
Your writers focus on content; the layout takes care of itself.
When your organization does want its own look (colours, fonts, logo on the cover page), a single theme file can be shared by every document and every pipeline. See the developer guide linked below.
Mass generation
Because it is fast and fully scriptable, PowerDocs CLI is well suited to producing large numbers of documents in one go:
- one PDF per product, per version or per language from a shared set of Markdown sources,
- personalized documents for each customer or site (proposals, reports, installation guides),
- nightly regeneration of an entire documentation library,
- migration of an existing Markdown knowledge base into a set of PDF deliverables.
A simple script is enough to loop over your document plans:
for plan in plans/*.yml; do
powerdocs-cli "$plan" "output/$(basename "$plan" .yml).pdf"
done
Scheduled and on-demand reports
PowerDocs CLI can be triggered by any tool able to run a command: a scheduled task, a cron job, a script launched by another application, or an internal portal. Combine it with a process that writes Markdown (exported data, generated tables, monitoring results) and you get polished PDF reports without anyone opening an editor.
How it works
- Write your content in Markdown, as you already do in PowerDocs.
- Describe your document with a document plan (
.yml): title, author, version, classification, the order of chapters, headers and footers. The easiest way to create one is the Document Plan Editor of the PowerDocs application. - Generate the PDF by running PowerDocs CLI with the plan and the name of the output file.
Everything you configure in the plan is honoured by the CLI, including watermarks and document classification.
PowerDocs or PowerDocs CLI?
| You want to… | Use |
|---|---|
| Write and preview documents interactively | PowerDocs |
| Build and fine-tune a document plan visually | PowerDocs |
| Check spelling and grammar while writing | PowerDocs |
| Regenerate PDFs automatically after each change | PowerDocs CLI |
| Publish documentation from a CI/CD pipeline | PowerDocs CLI |
| Produce dozens or hundreds of PDFs in one run | PowerDocs CLI |
| Generate PDFs on a server with no graphical interface | PowerDocs CLI |
Both tools share the same document plans and produce identical PDFs: authors use the application, automation uses the CLI.
Going further
PowerDocs CLI is a technical tool aimed at developers, DevOps engineers and documentation teams. Its complete reference, covering command-line options, the document plan format, theme files and ready-to-use CI/CD pipeline examples, is available in the developer documentation: