+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Configure the application from the CLI

We can set values for our application's configurable MobileFirst parameters with the mfpdev app config command.

We can specify values for the settings that are listed in the following tables. The settings in Table 1 apply to applications for all supported platforms: Cordova, native iOS, native Android, and native Windows. The settings listed in Table 2 apply to Cordova applications only.

We can specify the required settings with the mfpdev app config command to use direct mode. We can also enter only the mfpdev app config command to complete the information with prompts. See c_cli_modes.html for more information about direct and interactive modes.

Table 1. Settings for all supported target platforms
Set Description
server Specifies the server profile to use to update MobileFirst Server information. If a value is not passed then the default server profile is used.
runtime Specifies the runtime to use on the specified MobileFirst Server. The default is mfp.
language_preferences Specifies the default language to use for client system messages.

To have the language default to the locale that is set on the mobile device, enter a space.

Other possible values are:

  • English: en
  • French: fr
  • Spanish: es

The default is English (en).

We can specify the following additional settings for Cordova apps:

For the web resources checksum settings, each possible target platform (Android, iOS, Windows 8, Windows Phone 8, and Windows 10 UWP) has a platform-specific key for use in mfpdev direct mode. These keys begin with a string that represents the platform name. For example, windows10_security_test_web_resources_checksum is a true or false setting that specifies whether to enable the web resources checksum test for Windows10 UWP.

Table 2. Settings for Cordova applications only
Set Description
direct_update_authenticity_public_key Specifies the public key for direct update authentication. The key must be in Base64 format. For more information, see Implementing secure Direct Update on the client side.
ios_security_test_web_resources_checksum If set to true, enables the test for web resources checksum for iOS Cordova apps. The default is false.
android_security_test_web_resources_checksum If set to true, enables the test for web resources checksum for Android Cordova apps. The default is false.
windows10_security_test_web_resources_checksum If set to true, enables the test for web resources checksum for Windows 10 UWP Cordova apps. The default is false.
windows8_security_test_web_resources_checksum If set to true, enables the test for web resources checksum for Windows 8.1 Cordova apps. The default is false.
windowsphone8_security_test_web_resources_checksum If set to true, enables the test for web resources checksum for Windows Phone 8.1 Cordova apps. The default is false.
ios_security_ignore_file_extensions Specifies what file extensions to ignore during web resources checksum testing for iOS Cordova apps. Separate multiple extensions with commas. For example: jpg,gif,pdf
android_security_ignore_file_extensions Specifies what file extensions to ignore during web resources checksum testing for Android Cordova apps. Separate multiple extensions with commas. For example:jpg, gif,pdf
windows10_security_ignore_file_extensions Specifies what file extensions to ignore during web resources checksum testing for Windows 10 UWP Cordova apps. Separate multiple extensions with commas. For example: jpg,gif,pdf
windows8_security_ignore_file_extensions Specifies what file extensions to ignore during web resources checksum testing for Windows 8.1 Cordova apps. Separate multiple extensions with commas. For example: jpg,gif,pdf
windowsphone8_security_ignore_file_extensions Specifies what file extensions to ignore during web resources checksum testing for Windows Phone 8.1 Cordova apps. Separate multiple extensions with commas. For example: jpg,gif,pdf

Parent topic: The MobileFirst command-line interface (CLI)