CLI Commands
You can use IBM MobileFirst™ Platform Command Line Interface to create apps from the command line.
- adapter add
Creates a new adapter, which is generated in the adapters folder of the current project. - adapter call
Calls an adapter procedure on the MobileFirst Server. - add adapter
Deprecated in V7.0.0. Use adapter add instead. Creates a new adapter, which is generated into the adapters folder of your project. - add api
Generates a new native API into the apps folder of the current project. - add environment
Adds a platform-specific environment to a hybrid application, and adds an entry to the build-settings.xml file. - add feature
Adds optional features to your app. - add hybrid
Generates a new hybrid application in the apps folder of the current project. - add skin
Creates MobileFirst skins in your hybrid app. - (deprecated) bd
Builds and deploys to the local test server the set of MobileFirst resources that are most local to the current working directory. - (deprecated) build
Builds the set of MobileFirst resources that are most local to the current working directory. - build config
Configures and application’s build settings. - config
Configure settings of your project. - console
Opens the MobileFirst Operations Console in your default browser for the default or specified server. - cordova create
Creates a Cordova project. - cordova emulate
Deploys apps on the platform and emulators that you specify. - cordova platform add
Adds a new platform to your Cordova app. - cordova platform list
Lists the platforms that are available and contained in the Cordova app. - cordova platform remove
Removes a platform from your Cordova app. - cordova platform update
Updates Cordova assets for each platform that you have installed in your app. A backup ZIP file is created for each platform folder before the Cordova assets are updated. - cordova plugin add
Adds plug-ins to your Cordova app. - cordova plugin list
Lists plugins that are defined in the Cordova app. - cordova plugin remove
Removes a plugin from a Cordova app. - cordova plugin search
Searches for a new plugin to install. - cordova plugin update
Updates the Cordova assets for each plug-in that is installed in the app. - cordova prepare
Copies all of the necessary files into the platform that you specify, then updates the related source files to build the project. - cordova preview
Previews the current application. - cordova run
Deploys apps on the platform and devices that you specify. - create
Creates a new project in the current working directory. - (deprecated) create-server
This command does not need to be run manually because the built-in development server is automatically created and started as needed. Creates a new WebSphere® Application Server Liberty application server in your default folder. - (deprecated) deploy
Deploys to the local test server the set of resources that are found in the current working directory. - export
Creates a compressed file, which contains either the entire project or the hybrid assets for use in a native application. - help
Displays either information about the general use of the CLI, or detailed help for each command. - info
Generates information about your environment. This information contains the operating system, the memory consumption on your machine, the node version, and the CLI version. - invoke
This command is deprecated. You can use the adapter call command instead. The invoke command starts a procedure for a specified adapter on the MobileFirst Server. - logs
Displays the path to the local test server logs. - preview
displays a preview of the current application or environment in your default browser by using the Mobile Browser Simulator (MBS). This command does not support the use of remote servers. - push
This command replaces the previous mfp build, mfp deploy, and mfp bd commands. Prepares and transfers the relevant assets to either a local or remote MobileFirst Server. These assets can either be native app registration, hybrid app registration, or Cordova app registration. These assets also include web content for either direct update or the deployment of adapters. - remove feature
Removes optional features from your hybrid applications. - restart
Restarts the local test server. - run
Starts the local test server. - server add
Adds a server definition. - server create
Create or recreate a local development server. A server profile is automatically generated for this server. This command replaces the deprecated mfp create-server command. - server edit
Edits an existing server definition. - server info
Provides information for all servers or a specific server. - server remove
Removes an existing server definition. - start
Starts the local test server. - status
Displays the status of the local test server, which is either running or stopped. - stop
Stops the local test server.
Parent topic: Reference