Expand my Community achievements bar.

curl command for adding filter in package Manager

Avatar

Level 4

Hi,

I am trying to add filters in package manager by curl command in window:-

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/update.jsp -F'path=/etc/packages/6.2/connect.zip' -F'packageName=connect' -F'groupName=6.2' -F'filter=[{"root":"/content/geometrixx/de","rules":[]}]' -F'_charset_=UTF-8'

 

When i execute through Git bash in window it throws an error:-

success":false,"msg":"Could not modify package. null","path":"C:/Program Files/Git/etc/packages/6.2/connect.zip"}

why it is taking local path?

 

And when i installed curl in window and through cmd , i execute below command:-

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/update.jsp -F path=/etc/packages/6.2/connect.zip  -F'filter=[{"root":"/content/geometrixx/de","rules":[]}]' -F'_charset_=UTF-8'

 

I got below message, but it doesnot add any filters in package.


{"success":true,"msg":"Package updated successfully","path":"/etc/packages/6.2/connect.zip"}

 

Thanks

1 Reply