findReplace an entire space using Confluence CLI

Samuel July 24, 2013

Hi,

How is findReplace used to "find and replace" text within an entire space using Confluence CLI? For example: Search a specified space for "boy" and replace with "girl".

I used findReplace with modifyPage and it worked fine for a specified page. However, I have over 300 pages per space so doing it page by page will not be efficient. Is there a modifySpace action?

Any thoughts on how to do this?

Thank you,

1 answer

1 accepted

0 votes
Answer accepted
Ryan Goodwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2013

Not sure how to do that with the CLI, but I'm sure Mr. Swift can help you if you ask nicely :)

You could do an XML export of the space, load it up in a text editor, and find and replace with your favorite text editor. Then import the modified space xml back into Confluence. Little bit more work, so might not be your best option.

Samuel July 25, 2013

Thanks for the response. The XML export method worked fine. More work, but quite flexible.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events