This article explains how to export blogs using Confluence CLI.
Instructions
For this scenario, use the exportPage CLI action with the parameters space and id where:
- space: Name of the space
- id: Id of the blog
- exportType: Indicated the type of export the blog post should be in.
Use the exportPage CLI action to export a blog from the space.
In the below example, we get the PDF export of a blog (id = 720927) of a space, SPAC.
--action exportPage --space "SPAC" --id "720927" --file "Space.pdf" --exportType "PDF"
Output:
This will give you the PDF export of the blog with the content.