Import a text file with Atlassian CLI

Hi,

I'd like to import some readme.md files from some Git repositories. The content of the readme.md files should be added to (different) Confluence pages. I do not want to attach the files to the Confluence pages, I want to important the content to the page directly to use the search function and to have the content displayed on the page.

Thank you very much for answering!

Best regards

Stefan

1 answer

1 accepted

Use storePage from the ACLI/Confluence CLI with the file parameter pointing to your readme file. You can add some before and after content as well if you need.

Thank you very much!

Do I need both plugins?

Or does Atlassian Command Line Interface include the second one?

This is a combined distribution including all product specific CLI tools.

Do I need the Run Plugin for Confluence as well to execute queries from a Confluence page?

Atlassian Command Line Interface (which includes the Confluence CLI) are client programs (runs on PC) - no plugins on your server are required to run from a client. The CLI plugin for Confluence provide additional capabilities to run ACLI actions from within Confluence. Atlassian CLI license requires purchase (but not install) of a plugin.

From your original request, it sounded like you just need a client to populate your Confluence with the pages. If you have additional requirements the plugin may be useful. Same goes for the Run plugin - it is useful if you need a user dialog for someone to interact with in order to create a page, etc...

Thank you very much for the detailled explanation! Now I'm asking for money.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

346 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you