gomtm-cli

raw JSON →
0.8.2808 verified Sat Apr 25 auth: no javascript

A CLI tool for interacting with the GoMTM platform. Version 0.8.2808 is the current stable release. It appears to be a command-line interface, but no detailed documentation or usage examples are provided in the readme. Likely used for automation or management tasks. Release cadence is unknown.

error Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/gomtm-cli/index.js not supported.
cause Using CommonJS require() on an ESM-only package.
fix
Switch to import or use dynamic import() in CommonJS files.
error TypeError: gomtm.init is not a function
cause Using default import incorrectly or the package does not export init as default.
fix
Check the package exports; try import { init } from 'gomtm-cli' if default is undefined.
gotcha Package is poorly documented; the readme is just the package name. Use with caution.
fix Review the source code or contact the maintainer for usage details.
breaking Version 0.8.x may have breaking changes from 0.7.x due to major version bump pattern. No changelog provided.
fix Pin to specific version and test thoroughly before upgrading.
gotcha Assume ESM-only; require() will fail if package uses ES modules.
fix Use import syntax and set type: module in package.json, or use dynamic import in CJS.
npm install gomtm-cli
yarn add gomtm-cli
pnpm add gomtm-cli

Initializes the GoMTM client and runs a task, using environment variable for API key.

import gomtm from 'gomtm-cli';

async function main() {
  const client = await gomtm.init({ apiKey: process.env.API_KEY ?? '' });
  const result = await client.run('task-name', { param: 'value' });
  console.log(result);
}

main().catch(console.error);