Enable Asadmin CLI Multimode Event Designators

This feature allows the use of Bash Event Designators when using Payara Server’s Asadmin CLI in multimode.

An Event Designator is a reference to a command line entry in the history list, which makes it easy for users to refer and re-use previous asadmin subcommands entries.

This feature is disabled by default in Payara Server and has to be enabled first before being used.
If this feature is enabled, all occurrences of the \ character will be escaped and thus, removed before running the corresponding command. You’ll have to escape these characters and turn them into \\ for any commands to be properly parsed.

Enabling JLine Event Expansion

To enable support for JLine event designators just set the AS_ADMIN_DISABLE_EVENT_EXPANSION environment variable to false. Follow these steps depending on your operating system:

Linux and *Nix variants

  1. Open the Terminal

  2. Type the following command

    export AS_ADMIN_DISABLE_EVENT_EXPANSION=false
  3. Check that the variable has been correctly set:

    echo $AS_ADMIN_DISABLE_EVENT_EXPANSION

Windows

  1. Open Command Prompt as an Administrator

  2. Type the following commands

    setx AS_ADMIN_DISABLE_EVENT_EXPANSION "false" /m
    set AS_ADMIN_DISABLE_EVENT_EXPANSION=false
  3. Check that the variable has been correctly set:

    echo %AS_ADMIN_DISABLE_EVENT_EXPANSION%