Export some page with command line

Hello everyone,

We would like to export some important pages via cli to automate this export.

Is it possible and how ?

Thank you in advance :slight_smile:

Yes, it’s possible, see advanced sections of https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports

EDIT: Checking if this still works with the new PDF export app. I thought it was but I have some doubts now.

Thank you !

If I have a good comprehension of the system, I can export pages using URL, is that right ?

ok we lost the ability to have a URL endpoint to perform PDF exports when we moved to the new PDF export application in XWiki 14.10… I’ve created Loading...

The current workaround is to create a wiki page to act as a proxy for the export and that uses the PDF scripting service, see https://extensions.xwiki.org/xwiki/bin/view/Extension/PDF%20Export%20Application/#HScriptService

Then you can use the /get/ action to call that wiki page from your CLI (see https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Architecture/URL%20Architecture/Standard%20URL%20Format/#HAction:get )

Thank you again, I will look for that !