Fork me on GitHub Fork me on GitHub


  1. Extract to a directory you prefer. lets call it JAGGERY_HOME
  2. Navigate to JAGGERY_HOME/bin directory which contains all the Jaggery execution scripts.
  3. Run sh JAGGERY_HOME/bin/   ( JAGGERY_HOME/bin/server.bat in windows) command to start the server
  4. Point the browser URL to http://localhost:9763/taskmaster
  1. Create a directory called helloapp at {JAGGERY_HOME}/apps/
  2. Create a jaggery file helloworld.jag inside the helloapp directory and add the following code snippet

  3. <%
        var name = 'Jaggery';
        print("Hello " + name);

  4. Thats it! now point to http://localhost:9763/helloapp/helloworld.jag

Excited ?? check out the Jaggery API

In-order to compose a Jaggery script you will need to give it a .jag extension.

There are no restrictions for the directory structure, add your .jag files where ever you want, and copy the entire directory to {JAGGERY_HOME}/apps/ directory. The Jaggery Server will then deploy the directory as an application which will be shown in the management console. The directory name will be taken as the application context name

Alternatively your app could be uploaded as a .zip archive using the management console. The upload page can be found under the Add link in Jaggery Applications section.

Upload Jaggery

Jaggery Server is the Runtime Environment that hosts Jaggery applications.

It contains a management console, for admins to manage (deploy, reload, stop and start) Jaggery apps. Using the management console, admins can gather basic statistics about deployed applications.

Jaggery Server is powered by WSO2 carbon OSGi Runtime

Management console can be accessed by https://localhost:9443/admin - Username : "admin" , Password : "admin"

Jaggery Management Console

The Jaggery command line client ships with the Jaggery server and can be executed at bin/jaggery.bat or bin/ based on your platform. Using this it is possible to enter into the command line console.

Important !  Jaggery CMD is still experimental, and is for developer preview. You are welcome to play with it and please do provide us your feedback
Jaggery Command Line

<script.jag> - Load Jaggery script (script.jag) from the current path.

Eg :- sh script.jag

Jaggery Commands

-help – Shows all the commands for help.

-quit – Quits the Jaggery command line (Only applicable for shell mode).

-shell – Enter into the shell mode (shell mode is described in the next section).

-version – Shows the current version of the Jaggery build.

Jaggery shell mode will facilitate the evaluation of Jaggery expressions. Also this will be helpful for interactive script executions and debugging.

Jaggery Shell

help – Shows all the commands for help.

quit – Quits the Jaggery command line (Only applicable for shell mode).

version – Shows the current version of the Jaggery build.