Import a text file with Atlassian CLI


I'd like to import some files from some Git repositories. The content of the 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


1 answer

1 accepted

Accepted Answer
1 vote

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
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

327 views 2 4
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