Skip to end of banner
Go to start of banner

How to load HTML files as attachments using loadFiles CLI action in Confluence Cloud

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

This article explains how to load HTML files as attachments using loadFiles CLI action in Confluence cloud.

Instructions

  1. By default loadFiles action converts all text, HTML and markdown files into pages in Confluence. In the case of HTML files, the content is wrapped within an HTML macro. Since HTML macro is not available in Confluence Cloud at present, the loadFiles action results in a blank page.
  2. Alternatively, loadFiles action with autoPage option adds the HTML files as attachments to page. This example works because the autoPage contains no value and hence does not result in automatic page conversion.

    --action loadFiles --file index.html --space TEST --options "autoPage="
    
    


autoPage option with values (text, HTML and markdown) provides customised behaviour for loadFiles action. If a value is provided for autoPage, only the types specifically listed will be automatically converted to pages as is done with the default behaviour.
  • No labels