[jboss-dev-forums] [JBoss AS 7 Development] - A GUI for the Command Line Interface
Stan Silvert
do-not-reply at jboss.com
Wed Jan 16 09:15:28 EST 2013
Stan Silvert [https://community.jboss.org/people/ssilvert] modified the document:
"A GUI for the Command Line Interface"
To view the document, visit: https://community.jboss.org/docs/DOC-17457
--------------------------------------------------------------
> *News*: +As of JBoss AS 7.1.2, CLI GUI supports https://community.jboss.org/docs/DOC-17862 integration with jconsole.+
If you start jboss-cli with the *--gui* option, it will bring up a GUI instead of a command line. Note that *--gui* also implies the *--connect* option because the gui doesn't work in a disconnected state. You should use the *--controller* option if you need to use a host and port other than localhost:9999.
jboss-as-7.1.0.Final/bin> ./jboss-cli.sh --gui
You will see a screen that looks like this where you can browse the domain model:
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20139/cligui1.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20139/450-337/cligui1.png
To see the operations available for a node, right-click the node. Context-sensitive help is available throughout the Command Builder:
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20140/cligui2.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20140/450-337/cligui2.png
For operations that have parmeters, you will be prompted. Help is available for each parameter by hovering over its label.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20141/cligui3.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20141/450-336/cligui3.png
The command line will be filled in automatically. You can hit the "Enter" key or click submit to send your command to the server.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20142/cligui4.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20142/450-337/cligui4.png
You can also edit the command line manually and submit a command at any time:
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20143/cligui5.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20143/450-337/cligui5.png
If you double-click on a previous command, it will be selected and copied to the command line. You don't need to copy and paste by hand.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20144/cligui6.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20144/450-337/cligui6.png
The command is also copied to the system clipboard so you can paste into your favorite editor. This is handy for creating scripts.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20146/cligui7.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20146/450-150/cligui7.png
As of JBoss AS7.2, CLI GUI supports the *deploy* and *undeploy* commands via the "Deployments" menu.
The advantage of constructing your command with the GUI is that you can use the system's file browser to find your deployment.
If you arent' using JBoss AS7.2, don't worry. You can use the latest version of CLI on AS7.0 and AS7.1 by https://community.jboss.org/docs/DOC-18795 Using the CLI remote client jar
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20147/cligui8.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20147/450-343/cligui8.png
And for undeploy you are presented with a list of deployments that you might wich to remove.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20148/cligui9.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20148/450-339/cligui9.png
Also new in JBoss AS7.2 is the "Scripts" menu. This allows you to execute CLI scripts from CLI GUI. One of
the nice features here is that it remembers the last 15 scripts executed. So you don't have to go hunting and
typing every time you want to run your script.
https://community.jboss.org/servlet/JiveServlet/showImage/102-17457-13-20149/cligui010.png https://community.jboss.org/servlet/JiveServlet/downloadImage/102-17457-13-20149/450-338/cligui010.png
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-17457]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130116/30d3ff2c/attachment-0001.html
More information about the jboss-dev-forums
mailing list