---
title: "How to convert HTML pages to Confluence pages using Confluence CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89133531/How%20to%20convert%20HTML%20pages%20to%20Confluence%20pages%20using%20Confluence%20CLI"
format: markdown
---
<span style="color: #000000">This article explains how to convert</span><span style="color: #000000"> HTML files to </span><span style="color: #000000">Confluence pages using the </span><span style="color: #000000">*Confluence Command Line Interface *</span><span style="color: #000000">app. Another possible use case is if you want content from certain HTML files to be available on new Confluence pages in a specific space.</span>

## <span style="color: #000000">Instructions</span>

<span style="color: #000000">For this scenario, use the </span>**<span style="color: #000000">runFromCsv</span>**<span style="color: #000000"> and </span>**<span style="color: #000000">storePage </span>**<span style="color: #000000">CLI actions to: </span>

- [**runFromCsv**](https://appfire.atlassian.net/wiki/x/No4UB)<span style="color: #000000">: Runs all the actions generated from the CSV file with the mentioned parameters.</span>
- [**storePage**](https://appfire.atlassian.net/wiki/x/kIwUB)<span style="color: #000000">: Create or update a page.</span>

1. <span style="color: #000000">Create a CSV file with column headers: </span>*<span style="color: #000000">space, parent, title, </span>*<span style="color: #000000">and,</span>*<span style="color: #000000"> file.</span>*<span style="color: #000000"> </span><span style="color: #000000">If the file(s) are available at different locations, provide the full path of the HTML file(s) under the </span>*<span style="color: #000000">file</span>*<span style="color: #000000"> column. </span>  
<span style="color: #000000">For this example, make sure that </span><span style="color: #000000">the required files, including the CSV file, are available in the CLI Client location. E</span><span style="color: #000000">nter the following values in </span>*<span style="color: #000000">Page.csv</span>*<span style="color: #000000">: </span>  
> Macro (inline-media-image)
2. <span style="color: #000000">Execute the following CLI command:</span>

<span style="color: #000000">The output of the given example is displayed as follows:</span>

![image](media://b30d43da-e2c6-4680-84be-10e9dabad1b0)

<span style="color: #000000">In the sidebar of the screenshot, note that a page is created for each HTML file under a parent page, </span>*<span style="color: #000000">Confluence CLI</span>*<span style="color: #000000">, as specified in </span>*<span style="color: #000000">Page.csv</span>*<span style="color: #000000">. Click any one of the options from the sidebar to view its content. The content of </span>*<span style="color: #000000">Page_6</span>*<span style="color: #000000">, for example, is displayed as:</span>

![image](media://6f623cf0-9ee7-4b3a-baa7-0944578ea957)

> ℹ️ <span style="color: #000000">It is recommended to test the CLI actions in a test environment before deploying in production.</span>