Expand my Community achievements bar.

CURL command for Merge Mode in AEM 6.5

Avatar

Level 2

Hello everyone, 

We have a special request from the client where in we need change the mode in which package is created and installed using curl command to "Merge". Currently, we are using curl commands via Jenkins Groovy to create the package and install them from one instance to another. But since we don't specify any mode , the default behaviour is "Replace" for the contents which get installed on a specific instance. 

 

Is there a way we can achieve this workspace filter using curl command ?

 

@arunpatidar @venkateshsha 

2 Replies

Avatar

Community Advisor

HI @anirudhanand ,

I believe, you can achieve this by setting up flag -F

curl -u <user>:<password> -F cmd=install -F mode=merge http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/test.zip

Hope that helps!

Regards,

Santosh

Avatar

Level 2

Hi Santosh,

 

Thank you so much for this solution but this doesn't seem to work for me. When I tried the same the the content does get replaced. Also will there be any update on the filter.xml on using the -F mode=merge since I couldn't find it to be updated?

 

Could you please guide here.

 

Thanks,

Anirudh

page footer