{"id":17034,"library":"mfpdev-cli","title":"IBM MobileFirst Platform CLI","description":"The IBM MobileFirst Platform Foundation Command Line Interface (CLI) is a tool for developing and managing MobileFirst applications targeting IBM MobileFirst Platform Foundation v8.0. While the CLI itself is still available on npm (latest `8.0.2022100206`), the underlying IBM MobileFirst Platform Foundation v8.0 product reached its end of support on September 30, 2021. This CLI provides command-line functionalities for tasks such as creating, building, and deploying applications within that specific platform ecosystem. Its key differentiator was deep integration with IBM's MobileFirst platform, offering workflows tailored to that product. Users should be aware of the deprecated status of the targeted platform when considering its use for new projects.","status":"deprecated","version":"8.0.2022100206","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install mfpdev-cli","lang":"bash","label":"npm"},{"cmd":"yarn add mfpdev-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add mfpdev-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a command-line interface installed globally to make the `mfpdev` command available in the terminal.","symbol":"mfpdev (global command)","correct":"npm install -g mfpdev-cli"},{"note":"After global installation, specific commands are executed directly in the terminal, not imported into JavaScript/TypeScript code.","wrong":"require('mfpdev-cli')","symbol":"mfpdev commands","correct":"mfpdev help"}],"quickstart":{"code":"npm install -g mfpdev-cli\nmfpdev help\nmfpdev create project MyMobileFirstProject\ncd MyMobileFirstProject\nmfpdev app register com.example.myApp MyWebApp","lang":"javascript","description":"Installs the MobileFirst CLI globally, displays its help menu, and demonstrates how to create a new project and register a web application within it."},"warnings":[{"fix":"For new projects, investigate migrating to IBM Mobile Foundation (often part of IBM Cloud Pak for Applications), which provides updated CLIs and capabilities, or consider alternative mobile development platforms.","message":"The `mfpdev-cli` targets IBM MobileFirst Platform Foundation v8.0, which reached its End of Support (EoS) on September 30, 2021. While the CLI remains available, new development should investigate successor products like IBM Mobile Foundation.","severity":"deprecated","affected_versions":">=8.0.0"},{"fix":"Try installing with `npm install -g --no-optional mfpdev-cli` to skip optional dependencies that might rely on native compilation. Ensure Python 2.7 and Visual Studio Build Tools are installed if native compilation is required.","message":"Windows users may encounter compilation errors related to `node-gyp` during global installation due to native dependencies.","severity":"gotcha","affected_versions":">=8.0.0"}],"env_vars":null,"last_verified":"2026-04-22T00:00:00.000Z","next_check":"2026-07-21T00:00:00.000Z","problems":[{"fix":"Install Python 2.7, Visual Studio Build Tools (or `windows-build-tools`), and then retry `npm install -g --no-optional mfpdev-cli`. Refer to `node-gyp` documentation for detailed setup.","cause":"Native module compilation issues on Windows, often due to missing build tools (e.g., Python 2.7, Visual Studio Build Tools).","error":"Error: `node-gyp rebuild` failed"},{"fix":"Ensure you have successfully run `npm install -g mfpdev-cli`. Verify npm's global installation path is included in your system's PATH environment variable.","cause":"The `mfpdev-cli` package was not installed globally, or its installation directory is not in your system's PATH.","error":"`mfpdev` is not recognized as an internal or external command"}],"ecosystem":"npm","meta_description":null}