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

Replicate package via curl from author to publisher

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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/

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

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/

Avatar

Level 1

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=repli...

Output should have this line:

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