Skip to content

Instantly share code, notes, and snippets.

@toodooleedoo
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save toodooleedoo/ae9639f25db5e8d8f16b to your computer and use it in GitHub Desktop.
Save toodooleedoo/ae9639f25db5e8d8f16b to your computer and use it in GitHub Desktop.
#AEM #CQ #CURL Rollout from a master from the command line
CHILDPAGES1="/content/00" #add more paths if needed however will require multiple msm:masterPages
CHILDPAGES2="/content/01"
BLUEPRINT="/etc/blueprints/blueprintname"
ROLLOUTTITLE="00000"
ROLLOUTNAME="00000"
HOSTNAME="localhost"
USERPASS="admin:admin"
DESTPATH="/content/destpath"
curl -u "${USERPASS}" "http://${HOSTNAME}:4502/bin/wcmcommand" -d "cmd=createSite" -d "_charset_=utf-8" -d ":status=browser" -d "destPath=${DESTPATH}" -d "srcPath=${BLUEPRINGNAME}" -d "./jcr:title=${ROLLOUTTITLE}" -d "label=${ROLLOUTNAME}" -d "msm=masterPages@Delete:true" -d "msm:masterPages=${CHILDPAGES1}" -d "msm:masterPages=${CHILDPAGES2}" -w '%{http_code}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment