Expand my Community achievements bar.

SOLVED

automating package creation

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

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.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----