creationhoogl.blogg.se

Run rest curl command mac
Run rest curl command mac




run rest curl command mac
  1. #RUN REST CURL COMMAND MAC HOW TO#
  2. #RUN REST CURL COMMAND MAC PASSWORD#

Package Management List All Installed Packages curl -u : Create a Package curl -u : -X POST -d packageName= -d groupName= Additional command placeholders are set in angle brackets.

#RUN REST CURL COMMAND MAC PASSWORD#

The following examples assume that AEM is running on localhost on port 4502 and uses the user admin with password admin.

run rest curl command mac

Here is a list of AEM cURL commands for common administrative and operational tasks. Įxecute the cURL command via the command line and view the response. Right-click on the resulting POST action and select Copy -> Copy as cURL.Ĭopy the cURL command to a text editor and remove all headers from the command, which start with -H (highligted in blue in the image below) and add the proper authentication parameter such as -u. Click the Preserve log option before clearing the console.Ĭlick Create in the Create Page wizard to actually create the workflow. Start the developer tools and select the Network tab. In this case, we have proceded to the end of the Create Page wizard, but have not yet clicked Create. Prepare the action you wish to invoke within AEM.

#RUN REST CURL COMMAND MAC HOW TO#

The following steps describe how to do this using the creation of a new page within the Chrome browser as an example. To find the exact command you need for your particular operation, you need to use the developer tools in your browser to capture the POST call to the server when you execute the AEM command. Building a cURL-Ready AEM CommandĬURL commands can be built for most operations in AEM such as triggering workflows, checking OSGi configurations, triggering JMX commands, creating replication agents, and much more. ĬURL’s source repository can be found on GitHub as well. However it is avaialble for most every operating system. Downloading cURLĬURL is a standard part of macOS and some Linux distros. All ACLs and access rights are respected when using cURL to execute an AEM command.

run rest curl command mac

In addition you can create your own cURL commands for most tasks in AEM.Īny AEM command executed through cURL has to be authorized just as any user to AEM. Content manipulation tasks such as activating pages, and starting workflows as well as operational tasks such as package management and managing users can be automated using cURL. The name cURL originally meant “see URL.”īecause of the RESTful nature of the Sling framework upon which AEM is built, most tasks can be reduced to a URL call, which can be executed with cURL. It supports a wide range of internet protocols including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, LDAP, DAP, DICT, TELNET, FILE, IMAP, POP3, SMTP, and RTSP.ĬURL is a well-established and widely-used tool for getting or sending data using the URL syntax and was originally released in 1997. What is cURLĬURL is an open-source command-line tool used to perform URL manipulations. cURL can be used to execute such URL calls and can be a useful tool for AEM administrators. In AEM for example, managing users, installing packages, and managing OSGi bundles are tasks that must be commonly done.īecause of the RESTful nature of the Sling framework upon which AEM is built, most tasks can be done with a URL call. Administrators often need to automate or simplify common tasks within any system.






Run rest curl command mac