Hi,
Iam trying to replace the URL in Space using CLI .
Approach 1:
./confluence.sh --action storePage --space "zconfluencecliTarget" --title "This is title 1" --findReplace "'http://testpage:8080':'http://confluence:8080'"
In this case i could not see any change in the page
Approach 2:
./confluence.sh --action modifyPage --id 105219716 --findReplace "'http://testpage:8080':'http://confluence:8080'"
Here the URL gets replaced to //testpage://testpage:8080
Could any one please help in undestanding what is going on wrong in here .
Also is there a way to search replace a URL in entire Space using CLI rather than doing it for title.
Thanks in advance,
Aravind
Please try using: "'http://testpage:8080':'http://confluence:8080',"
It is an quoting oddity that I would like to fix.
Thanks for the reply ,
Below is my confluence content :
Test page
Test page
Test page
Test page
Command:./confluence.sh --action storePage --space "zconfluencecliTarget" --title "This is title 1" --findReplace "'http://testpage:8080':'http://confluence:8080',"
Page updated: 'This is title 1'. Page has id: 103229632
After firing the commands also contents remains same.
Also is there a way to update the entire Space or all the occurences in the application using CLI ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I should have tested it first. Even I get confused by the workaround :(. Use the following - I have put in some extra spaces so it is readable here. The inner single quotes had to be doubled:
--findReplace " ' ''http://confluence:8080'':''http://testpage:8080'' ' "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thy this?
--action modifyPage --id 12345678 --findReplace "xxx:yyy"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the replay m
I tried ./confluence.sh --action modifyPage --id 105219716 --findReplace "'http://testpage:8080':'http://confluence:8080',"
In this case the"http://testpage:8080" gets replaced to " //testpage://testpage:8080"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.