Curl command operation on AEM:
CURL is an open source command line tool for performing URL Manipulations . It is designed for transferring data using various protocols like FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP and many more. cURL was released in 1997 . The name cURL stands for ìsee URLì.
Curl download url
https://curl.haxx.se/download.html
CURL
1)to get help screen
curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp
To list packages that are currently available
2)curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp?cmd=ls
3)To upload a zip
curl -u admin:admin -F file=@testingnow.zip http://localhost:4502/crx/packmgr/service.jsp
4)To install a zip
curl -u admin:admin -F name=testingnow http://localhost:4503/crx/packmgr/service.jsp?cmd=inst
5)Remove a package
curl -u admin:admin -F name=testingnow http://localhost:4502/crx/packmgr/service.jsp?cmd=rm
User Management operations :
6)To create a user:
curl -u admin:admin -FcreateUser= -FauthorizableId=sunday -Frep:password=sunday http://localhost:4502/libs/granite/security/post/authorizables
To add a node
7)curl --data jcr:primaryType=nt:unstructured --user admin:admin http://localhost:4502/content/geometrixx/en/toolbar/test3
To stop a bundle
8)curl -u admin:admin http://localhost:4502/system/console/bundles/org.apache.abdera.client -Faction=stop
9)To start a bundle
curl -u admin:admin http://localhost:4502/system/console/bundles/org.apache.abdera.client -Faction=start
10) Activate a page :
curl -u admin:admin -X POST -F path="/content/CustomXType" -F cmd="activate" http://localhost:4502/bin/replicate.json
Real time blogs to refer for curl command
https://hashimkhan.in/2015/05/27/aem-with-curl/
http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/
https://gist.github.com/sergeimuller/2916697
=============================================
To change the security password
got to crx/explorer -- choose security option and set password
To change the random authorizable node name
Osgi config - Disable the random authorizable component
or to change the length of the name - Random authorizable osgi config
https://jackrabbit.apache.org/oak/docs/security/user/authorizablenodename.html
Is there any way to provide achandling=overwrite in curl command ??
ReplyDeleteKaushik Gattu: Curl Command Operation On Aem >>>>> Download Now
ReplyDelete>>>>> Download Full
Kaushik Gattu: Curl Command Operation On Aem >>>>> Download LINK
>>>>> Download Now
Kaushik Gattu: Curl Command Operation On Aem >>>>> Download Full
>>>>> Download LINK 5P