Running an application client from the command line

You can use the client run task to run an application client.

Before you begin

Before you can run an application client, you must create a client and add a configuration for your client application in the client.xml file. See the Creating a Liberty client manually topic for examples of how you would create the application client.

About this task

The wlp/bin directory contains scripts that are called client and client.bat to run client applications. The syntax of these scripts is as follows:
client action <client_name> [options]

Procedure

Use the following command to run the application client:
client run client_name 
For Windows platforms
client.bat run client_name
where client_name is the name of the client.
Attention: If a default client exists, it runs defaultClient. If a default client does not exist, defaultClient is created, then runs (and likely fails because there is no application that is configured).