Last active
May 10, 2017 19:23
-
-
Save lklement/e0839c1d48273c4d00c0 to your computer and use it in GitHub Desktop.
CURL Commands for AEM Admin Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURL COMMANDS FOR ADMIN CLASS 6.2: | |
---------------------------------- | |
system path after adding cURL: | |
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;C:\Program Files\curl | |
page 33 | |
CHAPTER 5: Exercise 5.2 - Using Package Manager with cURL: | |
step 1. List commands: | |
curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp | |
optional: List packages: | |
curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp?cmd=ls | |
step 3. Upload a package: | |
curl -u admin:admin -F package=@training_import.zip http://localhost:4502/crx/packmgr/service/.json/?cmd=upload | |
step 4. Install a package: | |
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/training_import-1.0.zip?cmd=install | |
step 5. Delete a package: | |
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/training_import-1.0.zip?cmd=delete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment