automating package creation | Community
Skip to main content
New Participant
October 16, 2015
Solved

automating package creation

  • October 16, 2015
  • 1 reply
  • 1109 views

Hi,

I need to automate content package creation. I understand you can do this through curl to create/build/download the packages, my problem is that I do not know how to add a filter via the Command line any examples would be appreciated.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

What version of AEM (or CQ) are you using?

Assuming 5.5 or higher, you can use a format like the following:

curl -u <uid>:<pwd> -X POST -F 'path=<full_path_of_package>' -F 'packageName=<packageName>' -F 'groupName=<group_name>' -F 'version=<Version_Number>' -F 'filter=<array_of_filter_definitions_containing_root_and_pattern>' -F '_charset_=UTF-8'  http://<host>:<port>/crx/packmgr/update.jsp

 

See this page for a couple of examples:

http://aemfaq.blogspot.com/2013/09/creating-package-with-filtersexclusion.html

Let us know if you have any questions.

1 reply

Accepted solution
October 16, 2015

What version of AEM (or CQ) are you using?

Assuming 5.5 or higher, you can use a format like the following:

curl -u <uid>:<pwd> -X POST -F 'path=<full_path_of_package>' -F 'packageName=<packageName>' -F 'groupName=<group_name>' -F 'version=<Version_Number>' -F 'filter=<array_of_filter_definitions_containing_root_and_pattern>' -F '_charset_=UTF-8'  http://<host>:<port>/crx/packmgr/update.jsp

 

See this page for a couple of examples:

http://aemfaq.blogspot.com/2013/09/creating-package-with-filtersexclusion.html

Let us know if you have any questions.