AEM installation command line

Updated: May 9, 2020

With this blog we will explain about the options in command line installtion of AEM

AEM Installation command line

For a 32-bit Java VM

java -Xmx1024M -jar cq-quickstart-6.4.0.jar

For a 64-bit VM

java -XX:MaxPermSize=256m -Xmx1024M -jar cq-quickstart-6.4.0.jar




install these two instances in, for example

<aem-install>/author and


command-line scripts are located here:


This can be used to start and stops the AEM if it is installed before.

This folder contains the following Unix bash shell scripts:

  • start: Starts the instance

  • stop: Stops the instance

  • status: Reports the Status of the instance

  • quickstart: Used to configure start information, if necessary.

To Start AEM:

Windows: SET CQ_PORT=1234 & ./start.bat

Unix: CQ_PORT=1234 ./start

To stop AEM:

  • If you started AEM from either a script or the command line, press Ctrl+C to shut down the server.

  • If you have used the start script on UNIX, you must use the stop script to stop AEM.

To stop AEM using command line (<cq-installation>/bin directory.):

Windows: ./stop

Unix: ./stop.bat

Redefining the location of the temporary work directory

The default location of the temporary folder of the java machine is /tmp. AEM uses this folder too, for example when building packages.

If you want to change the location of the temporary folder (for example, if you need a directory with more free space) then define a <new-tmp-path> by adding the JVM parameter:"/<new-tmp-path>"

to either:

  • the server startup command line

  • the CQ_JVM_OPTS environment parameter in the serverctl or start script.


834 views0 comments

Recent Posts

See All

More about clientlibs in AEM

Here we will talk more details about clientlibs Static Resources in clientlibs Static resources below the client library folder must be in a folder called resources. If you do not have the static reso

Debugging Clientlibs

In this article we will discuss about how we can debug the js and css file in development environment. Let's see what are the debugging tools available in AEM. To see the embedded files in clientlibs