This article explains how to insert an attachment link in a page using Confluence Command Line Interface.
...
addAttachment action:
Code Block theme Midnight --action addAttachment --space "SPACEKEY" --title "PAGETITLE" --file "./src/itest/confluence/resources/testing.mp3"
modifyPage action: modifyPage action is used to modify the current page content by adding content before(--content) or after current content(--content2) and applying findReplace logic (based on page content XHTML source).
Code Block theme Midnight --action modifyPage --space "SPACEKEY" --title "PAGETITLE" --content "[ABC](https://bobswift.atlassian.net?xxx&yyyzzz=aaa)" --noConvert --markdown
storePage action: storePage action creates/updates a page. If the page with the mentioned title is not found then it creates a new page with the mentioned information given in the CLI command. If the page exists then it restores the page with the new information/content as per the CLI command given.
Code Block theme Midnight --action storePage --space "SPACEKEY" --title "PAGETITLE" --content "[ABC](https://bobswift.atlassian.net?xxx&yyyzzz=aaa)" --noConvert --markdown
Info |
---|
In the above examples:
|
Info |
---|