WLST provides an interactive mode in which you enter a command and view the response at a command-line prompt. Interactive mode is useful for learning the tool, prototyping command syntax, and verifying configuration options before building a script
When entering commands interactively, you want to minimize typing and quickly correct any mistakes. In this blog entry, I summarize the various command line editing options available in WLST in Windows and Unix environments.
When running on a Windows system, WLST uses the Windows command shell for the WLST console. The Windows shell provides a number of keys that can be used to edit and recall commands. There are the common keys:
But there are also useful keys that are not as well known
The following link provides a good description of all of the keys supported by the Windows shell
In a Unix environment, WLST does not provide any command line editing capabilities. However, you can use a 3rd party tool like JLine to provide line editing in WLST.
JLine provides the following editing capabilities:
For more information about JLine refer to http://jline.sourceforge.net/index.html
To use JLIne with WLST, follow these steps.
java jline.ConsoleRunner weblogic.WLST
The default keys in JLine are:
See the JLine documentation for information on customizing the key bindings using the keybindings.properties file.