Curl Command to Publish the AEM Page
Publish the single and multiple pages from author to publisher environment using the curl command. Command for Publish a single page. curl -u admin:admin -X POST -F path="/content/we-retail/us/en/jcr:content" -F cmd="activate" http://localhost:4502/bin/replicate.json Command for Publish multiple pages. curl -u admin:admin -X POST -F path="/content/we-retail/us/en/jcr:content" -F cmd="activate" http://localhost:4502/bin/replicate.json && curl -u admin:admin -X POST -F path="/content/we-retail/us/en/experience/jcr:content" -F cmd="activate" http://localhost:4502/bin/replicate.json To run the command Open the Command Prompt and paste the curl command and enter . Please see the snapshot below for the reference. See the success output. If you want to double check whether your page is published or not just navigate the page path and see the u pdated date and time in the cq:lastReplicated...