May 3, 2020
Estimated Post Reading Time ~

Upload and install package via curl

It happened recently where I needed to install a package via curl because of UI issues and connection issues with a server. Here’s a fleshed-out command that will store the output to a file and show a progress bar: 

curl -u username:password -F file=@"./YourPackage.zip" -F name=“Package” -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt

This assumes you are executing this command *in the directory where the package is located*. Otherwise, you need to update the path in the file parameter.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.