I am looking at a whole git repository full of markdown documents that need to be exported into respective Confluence pages. I understand that pasting markdown clipboard content (by hand) into a page (cloud installation, hosted with Atlassian) shall work.
I also have (CMD.EXE, PowerShell) commands to put the content of a file into the clipboard.
Can I create a Confluence CLI instruction (with Appfire CLI or OOTB) that runs in a CMD or PS shell to paste the clipboard into a newly created page in Confluence? That way I could automate the creation of a Confluence space with the same content as my markdown document tree.
HI @Johan Bezem
We also have a support ticket SUPPORT-96478 to better track your request. However please find the response here as well.
Using Confluence Comand Line Interface, you can convert a markdown file into a confluence page using the storePage action. But you need to download all the required files into a directory on your local computer.
Please use the action shown below to import a single markdown file into a confluence page using CLI.
--action storePage --space test --title markdown --file Downloads/gitFiles/text.md --markdown
--action runFromCsv --file page.csv --common "--action storePage --markdown" --continue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.