...
Create a CSV file with column headers: space, parent, title, and, file. If the file(s) are available at different locations, provide the full path of the HTML file(s) under the file column.
For this example, make sure that the required files, including the CSV file, are available in the CLI Client location. Enter the following values in Page.csv:Infonote - Make sure that the HTML content in each file is valid so that the
- CLI command processes the content correctly.
- If
- an HTML file contains any
- invalid or incomplete HTML tag(s), the CLI stops further process of that file, displays the relevant error(s), and, continues to process the remaining files, if any.
Execute the following CLI command:
Code Block theme Midnight --action runFromCsv --file Page.csv --common "--action storePage --noConvert" --continue
The output of the given example is displayed on a Confluence CLI page as per the command executedas follows:
In the sidebar of the screenshot, note that a page is created for each HTML file mentioned under a parent page, Confluence CLI, as specified in Page.csv. Click any one of the options from the sidebar to view its content. The content of Page_6, for example, is displayed as:
Info | ||
---|---|---|
| ||
It is recommended to test the CLI actions in the a test environment before deploying in production. |
...