Upload and install package in AEM using curl | Community
Skip to main content
manisha594391
Level 4
August 20, 2019
Solved

Upload and install package in AEM using curl

  • August 20, 2019
  • 2 replies
  • 4241 views

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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav-Behl

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

2 replies

Adobe Employee
August 21, 2019

The file should be a file that is accessible by the account you are using to run the curl command. Usually, this file is located on the same machine where the curl command is being executed from.

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
August 21, 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