For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Administering MobileFirst applications through the command line
We can administer MobileFirst applications through the mfpadm program.
Comparison with other facilities
We can run administration operations with IBM MobileFirst™ Platform Foundation in the following ways:
- The MobileFirst Operations Console, which is interactive.
- The mfpadm Ant task.
- The mfpadm program.
- The MobileFirst administration REST services.
The mfpadm Ant task, mfpadm program, and REST services are useful for automated or unattended execution of operations, such as the following use cases:
- Eliminating operator errors in repetitive operations, or
- Operating outside the operator's normal working hours, or
- Configure a production server with the same settings as a test or preproduction server.
The mfpadm program and the mfpadm Ant task are simpler to use and have better error reporting than the REST services. The advantage of the mfpadm program over the mfpadm Ant task is that it is easier to integrate when integration with operating system commands is already available. Moreover, it is more suitable to interactive use.
Prerequisites
The mfpadm tool is installed with the MobileFirst Server installer. In the rest of this page, product_install_dir indicates the installation directory of the MobileFirst Server installer.
The mfpadm command is provided in the product_install_dir/shortcuts/ directory as a set of scripts:
- mfpadm for UNIX / Linux
- mfpadm.bat for Windows
These scripts are ready to run, which means that they do not require specific environment variables. If the environment variable JAVA_HOME is set, the scripts accept it.
To use the mfpadm program, either put the product_install_dir/shortcuts/ directory into the PATH environment variable, or reference its absolute file name in each call.
For more information about running the MobileFirst Server installer, see Run IBM® Installation Manager.
- Calling the mfpadm program
We can use the mfpadm program to administer MobileFirst applications.- Commands for general configuration
When we call the mfpadm program, we can include various commands that access the global configuration of the IBM MobileFirst Platform Server or of a runtime.- Commands for adapters
When we invoke the mfpadm program, we can include various commands for adapters.- Commands for apps
When we invoke the mfpadm program, you can include various commands for apps.- Commands for devices
When we invoke the mfpadm program, we can include various commands for devices.- Commands for troubleshooting
When we invoke the mfpadm program, we can include various commands for troubleshooting.
Parent topic: Administering MobileFirst applications