JBoss: Command Line Interface [CLI]

JBoss 7 has a new Command Line Interface (CLI) which can be used to deploy or undeploy applications.

Go to the bin folder of your jboss installation

Type the following command to start the CLI:


You will see the following response:

You are disconnected at the moment. Type ‘connect’ to connect to the server or ‘help’ for the list of supported commands.

Type connect

[disconnected /] connect

If you do not connect then press CTRL-C. It will say the following:

The controller is not available at localhost:9999

That means that the jboss installation is not using the standard port 9999. You can find the port in the server.xml file of the server.

Once you connect, just typing undeploy will show you all the deployments.

Typing undeploy with the name of the ear file will undeploy the application

undeploy my_app.ear