/
How to export a space or a page to a PDF file using Confluence CLI
How to export a space or a page to a PDF file using Confluence CLI
This article explains how to export a Confluence space or a Confluence page using Bobswift's Confluence Command Line Interface.
Instructions
Exporting a space
Use the below command to export a space including the child pages in a PDF format:
--action exportSpace --space SRS --file "export.pdf" --exportType "PDF"
Exporting a page
Use the below command to export a specific page, along with child pages, in a space in a PDF format:
--action exportSpace --space SRS --title "demo" --file "export.pdf" --exportType "PDF"
The parameters and actions used in the above commands are:
exportSpace action indicates exporting space to a file.
space value refers to the space key.
title value refers to the page title.
file refers Path/name to file of result output.
exportType indicates the type of pages the export should be in.
Export types are XML, HTML, PDF with XML being the default export type.
Related content
How to export pages with specific labels to PDF files using Confluence Command Line Interface app
How to export pages with specific labels to PDF files using Confluence Command Line Interface app
More like this
How to export multiple spaces using Confluence Command Line Interface (CLI)
How to export multiple spaces using Confluence Command Line Interface (CLI)
More like this
Export Space to PDF
Export Space to PDF
More like this
How to convert HTML pages to Confluence pages using Confluence CLI
How to convert HTML pages to Confluence pages using Confluence CLI
More like this
Export blog posts using Confluence CLI
Export blog posts using Confluence CLI
More like this
pdf-export macro
pdf-export macro
More like this