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 8 Next »

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
     
  1. Use the exportPage CLI action to export a blog from the space.
    1. 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"
  2. Perform the following steps to export the space in bulk.

    1. Create a blog.csv file with two columns having space, id (as shown in the below screenshot) as column headings:

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

      --action runFromCsv --file blog.csv --common "--action exportSpace --continue"


  • No labels