AEM Curl commands

Using curl command line tool you can do all sort of operations like create , delete, move and copy operation in AEM, this is very useful when it comes to maintenance projects. simple example is if you are using blueprint to create pages and after some point of time if you want to update blueprint template at code level then you need to create a page once again some client’s will accept to author pages once again and some client don’t so here, the curl commands help’s us to update page’s

What is Curl ?

Curl is a command line tool for doing all sorts of URL manipulations and transfers, you can download and install curl command line tool by clicking this link

Once the installation is completed just execute below command to cross check whether the installation is successful or not

“curl –help”

AEM Node Operations

Changing order of a node

The first thing which I am going to cover here is changing order of node, the below command moves eventviewer node to after dsc node

You can use :order operation by using these parameters such as first, last, before, after and numeric

Create a node

The below command creates a node

Move a node

Use below command to move a node under dsc node

Copy a node

Use below command to copy and paste eventviewer node to below dsc node

Delete a node

Use below command to delete eventviewer node

AEM Page operations

Create a page using AEM Curl command line tool

Delete a page

Move a page

Copy a page

Activate a page

Deactivate a page

AEM Package Manager Operations

list out all the packages in AEM instance

The below list of commands helps you to perform different operations in AEM package manager,  you just need to change command keyword

Command Name  Description
cmd=ls list of all the packages in AEM instances
cmd=install Install an existing package
cmd=uninstall Uninstall an existing package
cmd=build Build an existing package
cmd=delete Delete an existing package
cmd=help to see list of commands

Upload package

Upload and install package