Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

curl deployment with environment variable or path


Level 1


I am struggling with this but is there a way to deploy to aem server using either a folder or with environment variable or wild card? Ideally it would be great if I define the path=somefolder. This way anything in that folder can be deployed.

This works if I define the application in -F file=@""

curl -v -u user1:user1 --fail  -F file=@"" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This does not work and there is no error but when I echo $MYPP I can see the file name.

curl -v -u user1:user1 --fail  -F file=@"$MYAPP" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This does not work as well.

curl -v -u user1:user1 --fail  -F path="$MYAPP" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This would be ideal as well but do not think there is any support for curl with wild cards ?

curl -v -u user1:user1 --fail  -F file=@"*.zip" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'


0 Replies