application_xp_terminalIntegrates CRaSH in XWiki
Developed by

Vincent Massol, Frédéric Bouquet

Active Installs1
0 Votes
LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager


Integrates CRaSH into XWiki by allowing the following features:

  • Run CRaSH inside XWiki to provide a shell for it
  • Ability to start/stop CRaSH from the XWiki Admin UI
  • Ability to add commands as wiki pages and to access XWiki script bindings

There's another CRaSH integration. The differences are:

  • It's older
  • Doesn't allow connecting through SSH out of the box
  • Doesn't allow adding commands as wiki pages
  • OTOH it allows to trigger the CRaSH console from a wiki page

Start/Stop CRaSH


Connect using SSH

Before you can connect using SSH you'll need to edit XWiki's and add 2 configuration variables (modify the username and password as you see fit!):


Then here's what you'll get connecting to XWiki's CRaSH instance:


Default XWiki Command

By default we provide an xwiki command (located in page Crash.XWikiCommand and you can use to run any XWQL query.


  • Return the list of all users in the wiki: xwiki xwql "from doc.object(XWiki.XWikiUsers) as user"
  • Return the list of all pages containing CRaSH commands in the wiki: xwiki xwql "from doc.object(Crash.CrashCommandClass) as user"

For reference, here's the definition of this command:

@Usage("XWiki commands")
class xwiki
 @Usage("execute an XWQL query")
 public String xwql(
     @Usage("The XWQL query")
      String query)
 { {
      out.println("- ${it}")

Adding a new Command

Create a page and add an Object of type Crash.CrashCommandClass. For example:


And here's what you get when you execute it from SSH:


Tested on

This extension has been tested with the following configurations.

Extension VersionXWiki FlavorNotes
1.0XWiki Enterprise 5.0, 5.3M2

On 5.3M2 - BC deps need to be fixed

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki


Dependencies for this extension (org.xwiki.contrib:application-crash-ui 1.0):

Created by Vincent Massol on 2013/04/21 15:20

Get Connected