How can I execute a jboss CLI command so that I can page up, down, or search the response?
Consider the command 'module --help' for instance. The help info for any particular CLI command is often more than a page. On the Linux command line I could write, 'module --help | less' so that I can view the first page of the response and then navigate down and up to read the response. It's hard to believe there is no way to do this within the JBOSS-CLI but I have not found a way to do it yet.
This question is a very specific question about the JBOSS CLI, and not at all a general recommendation for software or some 3rd party tool. I'm asking for a way to accomplish something within the JBOSS-CLI similar to what I would do if on a Linux command line.
Actually the WildFly CLI command line pages long output by default. Which version of the CLI are you using?
It works like less. Use up/down arrows and space keys to navigate. Type '/' to enter some text to search for. Type 'n' to search forward, type 'N' to search backward. Type 'q' to exit the paged output.
Paging is enabled by default. It can be disabled using the <output-paging>false</output-paging>
element in the $JBOSS_HOME/bin/jboss-cli.xml configuration file or using the --no-output-paging command line option.
The feature is present in latest WildFly and in EAP 7.2+
Hope that helps.