Registry / devops / mbt
library0.1.0jsnpmunverified

The Cloud MTA Build Tool (MBT) is a standalone command-line interface (CLI) that streamlines the development and deployment of Multi-Target Applications (MTAs) on SAP platforms. It currently stands at version 1.2.45, with a rapid release cadence primarily focused on patch updates and minor improvements. MBT's core functionality is to transform an MTA project's artifacts, defined by `mta.yaml` or `mtad.yaml` descriptors, into a deployment-ready `.mtar` archive. Key differentiators include its comprehensive support for MTA model versions 2 and 3, granular control over build processes (e.g., single module builds, descriptor validations), and its availability as an npm package for convenient installation in Node.js environments or as a direct executable download. It aims to simplify the complex build requirements of multi-component SAP applications.

npm install mbt
INSTALL
IMPORT
SIG · MBT
M
mbt
devopsjavascriptv0.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mbt
npm install -g mbt
import { mbt } from 'mbt'
MBT is a command-line tool. The npm package provides the `mbt` executable globally; it is not typically imported as a module into a JavaScript application.
mbt
mbt build
node -r mbt build
The primary interaction with MBT is via its command-line interface directly in the terminal, not by programmatic invocation within a Node.js script (unless using child_process).
versioned_mbt_install
npm install -g mbt@1.2.45
npm install -g mbt
While `npm install -g mbt` installs the latest version, specifying a version (`@version`) is recommended for consistent build environments, especially in CI/CD pipelines. This ensures predictable behavior across builds.

Demonstrates global installation of the Cloud MTA Build Tool and basic commands for validating and building an MTA project.

npm install -g mbt@latest # Navigate to your MTA project directory # Example: A simple MTA project structure with an mta.yaml # my-mta-app/ # ├── mta.yaml # └── module-a/ # └── package.json # └── ... # └── module-b/ # └── ... cd my-mta-app # Validate the MTA project descriptor mbt validate # Build the entire MTA project, creating an .mtar file # The .mtar file will be generated in the current directory or specified output path. mbt build # Clean up build artifacts mbt clean # For more complex scenarios, refer to the user guide: # https://sap.github.io/cloud-mta-build-tool/
mbt --version
Debug
Known issues
breakingSince version 1.2.25, MBT no longer supports Node.js v10 and lower minor versions of Node.js v11, v12, and v13 due to an internal dependency change from `binwrap` to `axios`. `axios` requires newer ECMAScript module support.
fix
Ensure you are using a Node.js version of 11.15.0 or higher, 12.22.0 or higher, 13.14.0 or higher, or any version of Node.js v14 or later. It is highly recommended to use an actively supported LTS Node.js version (e.g., Node.js 18, 20).
affects: >=1.2.25
gotchaMBT operates as a command-line tool. While distributed via npm, its primary use is through the `mbt` executable, not as a library to be programmatically imported and used within JavaScript/TypeScript code. Direct programmatic integration typically involves spawning child processes.
fix
For automation, execute `mbt` commands using Node.js `child_process` module (e.g., `spawn` or `exec`), ensuring proper error handling and output capture.
affects: >=1.0.0
gotchaThe `mbt` tool strictly adheres to the Multi-Target Application (MTA) model specifications. Any deviations or malformed `mta.yaml` or `mtad.yaml` descriptors will lead to build failures.
fix
Always validate your `mta.yaml` using `mbt validate` or an appropriate schema validator before attempting a full build. Refer to the official MTA Model documentation for correct syntax and structure.
affects: >=1.0.0
Errors
Common errors & fixes
Error: `mbt` command not found
The `mbt` package was not installed globally, or the global npm bin directory is not in your system's PATH.
fix
Run `npm install -g mbt` to install the package globally. If the issue persists, verify your system's PATH environment variable includes the directory where npm installs global executables (e.g., `~/.npm-global/bin` or `/usr/local/bin`).
Error: Cannot find module 'axios'
This error often indicates that you are running MBT with an unsupported Node.js version that does not fully support ECMAScript modules, which `axios` requires.
fix
Upgrade your Node.js runtime to a compatible version (e.g., Node.js 11.15.0+, 12.22.0+, 13.14.0+, or any Node.js 14+). Check `node -v` to confirm your active Node.js version.
Invalid MTA descriptor: `mta.yaml` contains errors
The `mta.yaml` file has syntax errors, invalid structure, or refers to non-existent paths/modules.
fix
Carefully review the error messages provided by `mbt validate` or `mbt build`. Correct any syntax errors, ensure all referenced modules and resources exist, and align the descriptor with the MTA model specification.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mbt — npm install mbt · libregistry