Defining the target server of the MobileFirst Platform CLI

Before you start developing with MobileFirst Platform CLI, you must define the MobileFirst Server that you use for developing and testing.

About this task

The following procedure applies only when you use MobileFirst Development Server that is installed on another computer, or a MobileFirst Server other than MobileFirst Development Server with its default configuration. If you use MobileFirst Development Server locally on your computer, with its default configuration then this procedure does not apply to you.

If the MobileFirst Platform CLI target server is not configured, it connects to http://localhost:9080/mfpadmin with admin and admin as login credentials.

Procedure

  1. Run mfpdev help server add to get a list of arguments to add a server.
  2. Run mfpdev server add with the arguments that you need.
  3. Run mfpdev server info to verify that the server is added.

Example

To add a default MobileFirst Development Server that runs on the computer testserver.mydomain, run the command mfpdev server add myserver -url http://testerver.mydomain:9080 -login admin -password admin -contextroot mfpadmin -s.