Skip to content


Subversion checkout URL

You can clone with
Download ZIP
The AEM Groovy Console provides an interface for running Groovy scripts in the AEM (Adobe CQ) container. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the CQ, Sling, or JCR APIs.
Groovy JavaScript Java CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

CQ5 Groovy Console



  • CQ 5.4 running on localhost:4502
  • Maven 2.x+
  • cURL for automated deployment (optional)


  1. Install the console package (NOTE: if cURL is not installed, the package can be uploaded manually via Package Manager)

    a. If you already have the Groovy bundle installed in Felix:

    `mvn install -P install-console,local-author`

    b. If you do not have the Groovy bundle installed:

    `mvn install -P install-groovy,install-console,local-author`
  2. Test the installation

Additional build profiles may be created in the project's pom.xml to support deployment to non-local CQ5 servers.

Sample code:

getPage('/content/geometrixx').recurse { page ->
    println page.title + ' - ' + page.path

Additional sample scripts can be found in src/main/scripts.

Please contact Mark Daugherty with any questions.


Copyright 2011, CITYTECH, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.