Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Upload and install package in AEM using curl

Avatar

Avatar
Give Back 5
Level 2
manisha594391
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile

Avatar
Give Back 5
Level 2
manisha594391
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile
manisha594391
Level 2

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>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
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

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

17 likes

Total Posts

43 posts

Correct Reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

17 likes

Total Posts

43 posts

Correct Reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
SonDang
Employee

20-08-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.