The IBM MobileFirst™ Platform Command Line Interface (CLI) supports two modes of operation: interactive mode and direct mode.
The mfpdev commands have two modes: interactive mode and direct mode. In interactive mode, you enter the command without options, and you are prompted for responses. In direct mode, you enter the full command, including options, and prompts are not provided. When applicable, the prompts are context-sensitive to the target platform of the app, as determined by the directory from which you run the command. Use the up and down arrow keys on your keyboard to move through the selections, and press the Enter key when the selection you want is highlighted and preceded by a > character.
$ mfpdev server add Server1 --url https://acme.appserver.com:9080 --setdefault --login admin --password abcd999
This command creates a server profile for a MobileFirst Server that can be reached at the specified URL, and has the administrative login user name of admin and the password abcd999. The name of the new profile is Server1, and it is specified to be the default server profile,
$ mfpdev server add
Enter the name of the new server definition:
Enter the MobileFirst Server administrator login ID: (admin)
Enter the MobileFirst Server administrator password:
Save the admin password for this server? (Y/n)
Enter the context root of the MobileFirst Server administration services: (mfpadmin)
Enter the MobileFirst Server connection timeout in seconds: (30)
Make this server the default? (Y/n)
$ mfpdev app config
Select key
Server
Runtime
Direct Update Authenticity Public Key
Language Preferences
iOS Ignore File Extensions
>Changes completed, exit app config.
You toggle among the choices by pressing the up or down arrow keys on your
keyboard. You can also use the J and
L keys, for down and up respectively. The prompt
(>) indicates the current focus. Press the
Enter key when the > prompt is next to
the choice that you want to select.