{"id":40575,"library":"anypoint-cli-api-manager-plugin","title":"Anypoint CLI API Manager Plugin","description":"An oclif-based plugin for MuleSoft Anypoint CLI that provides commands to manage API Manager resources (e.g., list, create, update APIs). Version 1.4.4, stable but low activity; integrated with @mulesoft/anypoint-cli. Differentiators: extends the official MuleSoft CLI with API Manager-specific operations; supports authentication via environment variables or CLI flags; requires Node >=16.","status":"maintenance","version":"1.4.4","language":"javascript","source_language":"en","source_url":"https://github.com/mulesoft/anypoint-cli-api-mgr-plugin","tags":["javascript","oclif-plugin","typescript"],"install":[{"cmd":"npm install anypoint-cli-api-manager-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add anypoint-cli-api-manager-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add anypoint-cli-api-manager-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Plugin framework for building CLI commands","package":"@oclif/core","optional":false},{"reason":"Parent CLI that loads the plugin","package":"@mulesoft/anypoint-cli","optional":false}],"imports":[{"note":"Package is scoped under @mulesoft; npm name differs from import package name.","wrong":"const plugin = require('anypoint-cli-api-manager-plugin')","symbol":"default","correct":"import plugin from '@mulesoft/anypoint-cli-api-mgr-plugin'"},{"note":"Named export for base command class; use scoped package name.","wrong":"import { APIMgrCommand } from 'anypoint-cli-api-manager-plugin'","symbol":"APIMgrCommand","correct":"import { APIMgrCommand } from '@mulesoft/anypoint-cli-api-mgr-plugin'"},{"note":"CommonJS require works but ESM import is preferred.","wrong":"const { run } = require('anypoint-cli-api-manager-plugin')","symbol":"run","correct":"import { run } from '@mulesoft/anypoint-cli-api-mgr-plugin'"}],"quickstart":{"code":"import { run } from '@mulesoft/anypoint-cli-api-mgr-plugin';\n\n// Set environment variables or pass flags\nprocess.env.ANYPOINT_USERNAME = 'your-username' ?? '';\nprocess.env.ANYPOINT_PASSWORD = 'your-password' ?? '';\nprocess.env.ANYPOINT_ENVIRONMENT = 'Sandbox';\n\n// Run a command programmatically\nawait run(['api-mgr:api:list', '--environment', process.env.ANYPOINT_ENVIRONMENT]);","lang":"typescript","description":"Programmatically list APIs in an Anypoint environment using environment variables for authentication."},"warnings":[{"fix":"Use @mulesoft/anypoint-cli-api-mgr-plugin for imports and installation.","message":"Package name mismatch: npm registry name is 'anypoint-cli-api-manager-plugin', but import path is '@mulesoft/anypoint-cli-api-mgr-plugin'.","severity":"gotcha","affected_versions":"*"},{"fix":"Check compatibility with @oclif/core v2 and update if needed.","message":"Plugin is designed for oclif v1; may not work with oclif v2+ without updates.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Unset ANYPOINT_HOST before running tests: unset ANYPOINT_HOST.","message":"Setting ANYPOINT_HOST environment variable can break tests because nocks are tied to default URI.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'1.4.4':29 '16':59 'activ':33 'anypoint':1,13 'api':3,20,27,44 'authent':50 'base':9 'cli':2,14,42,55 'command':17 'creat':25 'differenti':37 'e.g':23 'environ':52 'extend':38 'flag':56 'integr':34 'javascript':60 'list':24 'low':32 'manag':4,19,21,46 'manager-specif':45 'mulesoft':12,41 'mulesoft/anypoint-cli':36 'node':58 'oclif':8,62 'oclif-bas':7 'oclif-plugin':61 'offici':40 'oper':48 'plugin':5,10,63 'provid':16 'requir':57 'resourc':22 'specif':47 'stabl':30 'support':49 'typescript':64 'updat':26 'variabl':53 'version':28 'via':51","created_at":"2026-06-04T18:48:14.110458+00:00","updated_at":"2026-06-04T18:48:14.110458+00:00","problems":[{"fix":"npm install @mulesoft/anypoint-cli-api-mgr-plugin","cause":"Installed wrong package name 'anypoint-cli-api-manager-plugin' instead of scoped package.","error":"Error: Cannot find module '@mulesoft/anypoint-cli-api-mgr-plugin'"},{"fix":"Ensure @mulesoft/anypoint-cli is installed and run 'anypoint plugins:link .' from plugin directory.","cause":"Plugin installed globally but not linked to @mulesoft/anypoint-cli.","error":"Error: oclif plugin not loaded"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mulesoft/anypoint-cli-api-mgr-plugin","github":"https://github.com/mulesoft/anypoint-cli-api-mgr-plugin","docs":null,"changelog":null,"pypi":null,"npm":"anypoint-cli-api-manager-plugin","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}