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.

[root@tecmint 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).

[root@tecmint 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.

Kuldeep Sharma
Currently, Working in Middleware(Jboss/Apache Tomcat) And POSIX related technologies. Having more than 5 years of experience and love to do R&D on different open source tools/technologies.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.