WildFly CLI (Command Line Interface) allows you to manage and configure WildFly application server instances. One of its powerful features is expansion expressions, which enable you to work with multiple resources efficiently. In this tutorial we will learn how to perform multiple operation commands using the expansion operator (*) when possible and by iterating over WildFly resources.
CLI
WildFly Command Line Interface (CLI) is a management tool for a managed domain or standalone server. You can launch if from the jboss-cli.sh script available in the bin folder of the application.
You can use the CLI to connect to the domain controller or a standalone server and execute management operations available through the de-typed management model.
Here are some useful resources to learn more:
CLI basics
How to run a WildFly CLI commands from the shell
How to configure WildFly from the CLI in embedded mode
Check Application status from the CLI
Check WildFly status from the CLI
How to read WildFly log files using the CLI
Advanced CLI
How to use conditional statements in WildFly CLI
How to use variables and aliases in WildFly CLI
How to use properties in WildFly CLI
Reverse engineer your JBoss AS-WildFly configuration to CLI
How to manage WildFly CLI execution with JCliff
CLI Commands from Java Code
How to manage WildFly programmatically with DMR API
How to discover WildFly resources programmatically
CLI in other flavors
Managing JBoss and WildFly with Groovy shell
How to get WildFly Server list using the CLI
In this short article, we will learn how to fetch the list of Servers in JBoss EAP or WildFly Domain using the Command Line Interface. This will let you automate your tasks by looping over your Server List. Getting the Server List from the CLI Firstly, connect to JBoss EAP or WildFly CLI: Then, execute … Read more
How to check JVM arguments from the CLI in WildFly
There are several options to collect JVM arguments of WildFly application server from the Command Line. Firstly, if you want to check JVM arguments of a Java process, a simple way to do that is using the ‘jps‘ tool which is available in the ‘bin‘ folder of the JDK. Example: Also, you can use the … Read more
Managing WildFly using HTTP/JSON API
You can access WildFly Management API through multiple channels, one of this is HTTP and JSON.In this article we will learn how to do it and which are the advantages of using this approach.
How to Add an User in WildFly
If you are an administrator of a Wildfly server, you may need to add new users to the server for authentication and authorization purposes. This short tutorial will teach you how to Add a management user with WildFly Application Server.
WildFly: How to rollback CLI changes
In this short article we will learn how to rollback WildFly Command Line commands after their execution in order to restore the original XML configuration.
How to run a WildFly CLI commands from the shell
WildFly ships with a powerful Command Line Interface which can be run interactively or not. In this tutorial we will learn how to run CLI commands in non-interactive mode. Running CLI commands in a File The simplest option to run CLI commands in non-interactive mode is to include the commands in a text file and … Read more
Reverse engineer your JBoss AS-WildFly configuration to CLI
Exporting your WildFly / JBoss EAP configuration to a CLI script is something you are going to need one day or another. No worries, the project Profile Cloner comes to rescue! (Updated to work with WildFly 26 and Java 11)
How to install a module on WildFly using the CLI
This article guides you through the installation of a module on WildFly / JBoss EAP using the Command Line Interface.
Monitoring the EJB container using the CLI
In this tutorial we will learn how to gather EJB 3 container statistics from JBoss AS 7 / JBoss EAP using the Command Line Interface.