This article explains how to export multiple spaces by using CLI in using Confluence Command Line Interface (CLI) with a single action.
Instructions
- Create a CSV file with the list of space keys along with the file type be exported and with the file names. Please see the below screenshot for reference:
Write an action with runFromCsv and exportSpace together to export multiple spaces. Please see the example action below:
The above action will executeCode Block language bash theme Midnight --action runFromCsv --common "--action exportSpace" --file CLI.csv
This runs the exportSpace action with values from the CSV file and stores data of all spaces into separate
Zipzip files.
Info |
---|
Export type's are types are XML, HTML, PDF and with XML being the default export type is XML. |