Replicate package via curl from author to publisher | Community
Skip to main content
New Participant
February 2, 2016
Solved

Replicate package via curl from author to publisher

  • February 2, 2016
  • 3 replies
  • 3482 views

Hi,

Anyone knows the curl command that will replicate the package from author to publish. The behavior i am looking, exactly same the replicate option provide via package manager console or any script snippet through which this can achieve.

Thanks,

V

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 ogill

Here are a couple of sites[0],[1] that can help with Curl commands, to deploy a package you would use:

Upload a package AND install
curl -u admin:admin -F file=@"name of zip file" -F name="name of package" -F force=true -F install=true http://localhost:4505/crx/packmgr/service.jsp

Are you looking for a command that will initiate the replication from author to publish? With curl you would normally upload from your local disk.

Regards,

Opkar

[0] https://gist.github.com/sergeimuller/2916697

[1] http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/

3 replies

petrog30634351
New Participant
July 31, 2018

Hi,

I think you're looking for this:

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/samplepackage.zip?cmd=replicate

Output should have this line:

{"success":true,"msg":"Package is replicated asynchronously"}

vdhim23Author
New Participant
February 2, 2016
ogillAccepted solution
Employee
February 2, 2016

Here are a couple of sites[0],[1] that can help with Curl commands, to deploy a package you would use:

Upload a package AND install
curl -u admin:admin -F file=@"name of zip file" -F name="name of package" -F force=true -F install=true http://localhost:4505/crx/packmgr/service.jsp

Are you looking for a command that will initiate the replication from author to publish? With curl you would normally upload from your local disk.

Regards,

Opkar

[0] https://gist.github.com/sergeimuller/2916697

[1] http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/