WildFly (JBoss AS) – How to Access and Manage CLI Using GUI

In last article, we have discussed about WildFly-8 (New enhanced version on Jboss AS). We have gone through the new functionalities and features added/upgraded to this version. Today, in this post we are going to discuss about the CLI management using GUI and how to manage the Server using GUI version on CLI management.

  1. WildFly – A New Improved JBoss Application Server for Linux
WildFly CLI Management
WildFly CLI Management

Since Jboss AS 7, we have got a command line (CLI) tool for connecting to JBoss application and managing all tasks from command line environment. Some of the tasks that we can do using CLI console are as below.

  1. Deploy/Undeploy web application in standalone/Domain Mode.
  2. View all information about the deployed application on runtime.
  3. Start/Stop/Restart Nodes in respective mode i.e. Standalone/Domain.
  4. Adding/Deleting resource or subsystems to servers.

In this post, we are going to discuss about the different tasks and the way for launching CLI in GUI. Currently we can connect to GUI using two ways as shown below:

Method 1

By passing –gui option to “jboss-cli” script provided with Jboss/WildFly.

[[email protected] bin]# ./jboss-cli.sh --gui
WildFly Cli Access
WildFly Cli Access
Method 2

Directly launching required jar from CLI (this is same which is in built in script itself).

[[email protected] bin]# java -Dlogging.configuration=file:$JBOSS_HOME/bin/jboss-cli-logging.properties -jar $JBOSS_HOME/jboss-modules.jar -mp $JBOSS_HOME/modules org.jboss.as.cli –gui
WildFly Cli Gui
WildFly Cli Gui

You can take help from tool tip available on each node.

WildFly Tooltip
WildFly Tooltip

For Getting Information about the resources of any module, just right click on that node and click on “read-resource”. After entering required values, all will get entered in command bar. Finally, click on submit button and you will see all details in Output tab.

WildFly Modules
Modules Information
WildFly Output
Output Script

Deploy/Undeploy

WildFLy’s GUI environment also supports for the deployments and undeployments of the web applications via the “Deployments” menu.

Using this we can construct our commands which can deploy applications present on our local file System, i.e. we don’t need to connect and copy application to Server for Deployments.

Step 1: Click on “Deployments” menu and then deploy. It will open a new dialog box asking for the location of the Web Application need to be deployed.

WildFly Application Deployment
Application Deployment

Step 2: Select your web application. Provide “Name” and “Runtime Name”. Along with this you have to disable or deploy it forcefully by using mentioned check boxes.

Deploy Name
Deploy Name

Step 3: Finally, click on Ok. After this you can see that it will create command within cmd box. Finally click on “Submit” button for submitting the deployment request.

Deployment Command
Deployment Command

Step 4: After submitting, if everything goes fine. You will see output message in “Output” tab.

Output Command
Output Command

Step 5: For Un-deployment of any application, again you have to click on “Undeploy” option available in “Deployment” menu. This will provide you new pop up containing list of all deployed applications. In my case I have only one application available. Select application need to undeploy and then click OK.

Undeployment Application
Undeployment Application

Creating and Executing CLI scripts

Whenever you click on option available on CLI’s GUI, then it creates corresponding command in its “cmd” prompt. Suppose, you have some task that you want to perform again and again. In that case you can avail use of “Script” execution facility available in this GUI version.

For example, Getting list of deployment resources, I have created a cli script and executed that from GUI as below.

Creating Cli Script
Creating Cli Script
Open Cli Script
Open Cli Script
Run Cli Script
Run Cli Script

It’ll show you the description of all available deployment resources.

All Deployments
All Deployments

One more helpful feature available in GUI is that It automatically keep the history of last 15 CLI scripts. So, you don’t need to load same script again and again. This can be really helpful for some kind of repeating task.

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.