/
How to load HTML files as attachments using loadFiles CLI action in Confluence Cloud
How to load HTML files as attachments using loadFiles CLI action in Confluence Cloud
This article explains how to load HTML files as attachments using loadFiles CLI action in Confluence cloud.
Instructions
By default the loadFiles action converts all text, HTML and markdown files into pages in Confluence. With HTML files, the content is wrapped within an HTML macro. Since HTML macro is not currently available in Confluence Cloud, the loadFiles action results in a blank page.
Alternatively, the loadFiles action with an autoPage option adds the HTML files as attachments to page. This example works because autoPage contains no value and hence does not result in automatic page conversion.
--action loadFiles --file index.html --space TEST --options "autoPage="
autoPage with values (text, HTML and markdown) provides customised behaviour for the loadFiles action. If a value is provided with autoPage, only the types specifically listed are automatically converted to pages similar to the default behaviour.
Related content
How to convert HTML pages to Confluence pages using Confluence CLI
How to convert HTML pages to Confluence pages using Confluence CLI
More like this
How to add an attachment link in a page using CLI
How to add an attachment link in a page using CLI
More like this
How to convert markdown content in Confluence using Confluence CLI
How to convert markdown content in Confluence using Confluence CLI
More like this
FAQs for the HTML for Confluence app
FAQs for the HTML for Confluence app
More like this
loadFiles
More like this
How to resolve the page not rendering properly for HTML macro
How to resolve the page not rendering properly for HTML macro
More like this