Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
     

Use the exportPage CLI action to export a blog from the space.

...

The example below enables you to export the blog with id = 720927 from the SPAC space to PDF

Code Block
themeMidnight
--action exportPage --space "SPAC" --id "720927" --file "Space.pdf" --exportType "PDF"

Perform the following steps to export the space in bulk.

...

The following CLI command exports all the blogs as per the IDs mentioned in the file:

...

themeMidnight

...

Output:

The output of the PDF export of the blog with the content:

Image Added

The parameters used in the above action are:

  • space: Name of the space.
  • id: Id of the blog.
  • exportType: Indicated the type of export the blog post should be in.
  • file: Path/name to file of result output.


Info

To get an ID of the blog, navigate to Ellipsis > Page Information in the respective blog as shown below:

Image Added