Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to push package through automated process from one aem instance to another aem instance

Avatar

Level 8

Hi,

 

We do a content sync from prod env to lower env  regularly to keep the content in sync for testing purpose.

 

So we would want to automate the process.

1>create a package with delta content for certain time period

 

2>push the above created  package from prod env to lower env based on hostname or ip

 

 

Could some one provide inputs as how we do the above

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@srinivas_chann1 You can try this:

Upload and Install a package from File system using AEM cURL command :
curl -u admin:admin -F file=@"C:\sample\samplepackage.zip" -F name="samplepackage" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp


Download a package into local filesystem using AEM cURL command:
curl -u admin:admin http://localhost:4502/etc/packages/my_packages/samplepackage.zip > <local filepath>

View solution in original post

4 Replies

Avatar

Community Advisor

@srinivas_chann1 we can archive this through Jenkins pipeline or using Curl commands to upload/install the packages in Shell script.

Avatar

Level 8

Hi,

 

Thanks for the reply

What could be the curl commands which I could add to jenkins for say a package name content_sync.zip

Avatar

Correct answer by
Community Advisor

@srinivas_chann1 You can try this:

Upload and Install a package from File system using AEM cURL command :
curl -u admin:admin -F file=@"C:\sample\samplepackage.zip" -F name="samplepackage" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp


Download a package into local filesystem using AEM cURL command:
curl -u admin:admin http://localhost:4502/etc/packages/my_packages/samplepackage.zip > <local filepath>

Avatar

Community Advisor

Hi @srinivas_chann1 

 

Kindly have a look at this blog which helps you to understand your requirement & achieve it with curl commands.

https://blogs.perficient.com/2019/04/08/deploy-aem-packages-with-jenkins-like-a-boss-2/

 

Regards,

Santosh