Versions Compared

Key

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

This article explains how to export multiple spaces by using CLI in using Confluence Command Line Interface (CLI) with a single action.

Instructions

  1. Create a CSV file with the list of space keys along with the file type file to be exported and with the file names. Please see the below attached screenshot for reference.:
    Image Removed
    Image Added
  2. Write an action with runFromCsv and exportSpace together to export multiple spaces. Please see below the example action .below: 

    Code Block
    languagebash
    themeMidnight
    --action runFromCsv --common "--action exportSpace" --file CLI.csv
    The above action will execute

    This runs the exportSpace action with

    the

    values from the CSV file and stores data of all spaces into separate

    Zip files per every space

    zip files.

Info

Export types are XML, HTML, PDF with XML being the default export type.