Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying an application via the CLI


In this recipe, we will learn how to deploy an application using the CLI. Here we will use just the basic options but keep in mind that you have several options during deployments, which we will analyze deeply in the chapter dedicated to the CLI.

Getting ready

In this recipe, and in the following one as well, we will need an application to test our configuration. For this recipe, we will need the application named example that you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe, please refer to it to download the source code and the projects that you will need.

How to do it…

  1. With your WildFly instance up and running, open up a terminal and connect to the CLI as usual:

    $ ./bin/jboss-cli.sh --connect
    [standalone@localhost:9990 /]
  2. Now we need to tell the CLI to deploy our application as follows:

    [standalone@localhost:9990 /] deploy example.war
    [standalone@localhost:9990 /]
  3. And let's have a look at the...