- Download https://files.acrobat.com/a/preview/e885654b-8424-4698-b5e9-7751b647276b (or build oak-run 1.1.x version)
- Stop all AEM instances
- Upload the oak-run 1.1 version to the AEM server if using TarMK or MongoDB server (if using MongoMK)
- Run this command to start the oak console
- on TarMK:
java -jar target/oak-run.jar console --quiet /path/to/segmentstore
- For MongoMK run this:
java -jar oak-run.jar console mongodb://localhost/aem-author
- Run these commands to set a property on a node
:load https://gist.githubusercontent.com/andrewmkhoury/b2599fa59079828bea83/raw/setProperty.groovy
setProperty(session, "/path", "propName", "propValue", false)
To build latest oak version:
$ svn checkout http://svn.apache.org/viewvc/jackrabbit/oak/trunk/
$ cd oak-run
$ mvn clean install
Note: use at least maven 3.1.0
Super useful. Saved our butts with this today! Thanks, Andrew.