Skip to end of banner
Go to start of banner

Exporting Blog Posts using Confluence CLI

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Current »

This article explains how to export blogs using Confluence CLI. 

Instructions

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:

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

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.


To get an ID of the blog, navigate to the respective blog > Page Information (as shown below).


  • No labels