Upload and install package in AEM using curl

Avatar

Avatar

manisha594391

Avatar

manisha594391

manisha594391

20-08-2019

Hi,

Please help me with the curl command to install and upload package in nexus repository to my local AEM server.

Command used:

curl -u <userId>:<password> -F file=@"<complete nexus url for the package till .zip>" -F name="<name of the package zip folder>" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp

Error received:

couldn't open file <complete nexus url for the package till .zip>

View Entire Topic

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

21-08-2019

Haven't tried your cmd but I believe you'd need to download the file from nexus using -O before uploading it to AEM

Another point to consider is the credentials of nexus vs AEM - Not sure if you have the same credentials for both or different

you may create a script or pipe it