In this recipe, we will learn how to deploy and undeploy an application using the CLI, and assign it to a specific server group. This recipe follows pretty much the same operation as executed in the previous recipe, but is specific to the CLI.
For this recipe, both the domain controller and host controllers should be up and running. For their configuration, please refer to the recipe Connecting the host controller to the domain controller in this chapter.
In this and the following recipe, we will need an application to test our configuration. For this recipe, we require the application named example
which you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe in Chapter 2, Running WildFly in Standalone Mode, please refer to it in order download all the source code and projects that you will need.
To build the application, type as follows:
$...