Confluence CLI
Asked by Pradeep L:

I am pulling page content from html and creating pages using confluen cli. The new page creates same as the source page. But the problem is, if i wanted to edit the content it is showing is in html format. Is there any way that i could edit directly. what options do i have under --content. What other format files could i create.

./acli.sh --action storePage --space xxxx --parent xxx --title "$i" --file xxxx.html --content "{html}" --content2 "{html}" --server xxxxx --user xxx --password xxxx


Answers:
author: Amulya Akula {Appfire}
body: Hi [@Pradeep L](/t5/user/viewprofilepage/user-id/3731758) ,

We are from the BobSwift support team. Thank you for raising request with us.

We would like to inform you that we have created a support request on your behalf in our portal.

<https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474>

Please signup to our portal to access the support request and further discussion on the ticket.

We are able to add the HTML content to the new Confluence page without the HTML code by appending **--noConvert**in the CLI action.

Please try the below CLI action and let us know if you face any issues.

```
--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert
```

Regards,  
Amulya Akula

comments: author: Pradeep L
body: Thank you [@Amulya Akula {Appfire}](/t5/user/viewprofilepage/user-id/3603513) , I got a parsing error but it did work after converting the html to xhtml online. I will find a way to convert through some command line utility.

Remote error: Error parsing xhtml: Unexpected close tag \</a\>; expected \</img\>.


author: Pradeep L
body: I am unable to access the portal, it says No access.


author: Amulya Akula {Appfire}
body: Hi [@Pradeep L](/t5/user/viewprofilepage/user-id/3731758) ,

You should be able to access it now using the below link:

<https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474>

Regards,  
Amulya Akula


author: Amulya Akula {Appfire}
body: Hi [@Pradeep L](/t5/user/viewprofilepage/user-id/3731758) ,

We are from the BobSwift support team. Thank you for raising the request with us.

We would like to inform you that we have created a support request on behalf of you in our portal.

<https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474>

Please signup to our portal to access the support request and further discussion on this ticket.

We are able to add the HTML content to the new confluence page without the HTML code by appending **--noConvert** in the CLI action.

Please execute the below CLI action in your instance and let us know if you face any issue.

```
--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert
```

Thanks,  
Amulya Akula


author: Amulya Akula {Appfire}
body: Hi [@Pradeep L](/t5/user/viewprofilepage/user-id/3731758) ,

We are from the BobSwift support team. Thank you for raising the request with us.

We would like to inform you that we have created a support request on behalf of you in our portal.

<https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474>

Please signup to our portal to access the support request and further discussion on this ticket.

We are able to add the HTML content to the new confluence page without the HTML code by appending **--noConvert** in the CLI action.

Please execute the below CLI action in your instance and let us know if you face any issue.

```
--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert
```

Thanks,  
Amulya Akula


Tags: confluence-server

server