# anypoint-cli-pdk-plugin

> pdk plugin

Latest version **1.6.0** (published 2025-11-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install anypoint-cli-pdk-plugin
pnpm add anypoint-cli-pdk-plugin
yarn add anypoint-cli-pdk-plugin
bun add anypoint-cli-pdk-plugin
```

Provides the command `anypoint-cli-pdk-plugin`.

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.0 |
| Published | 2025-11-18 |
| First published | 2023-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 22 |
| Unpacked size | 314.2 KB |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| Author | Mulesoft |
| Maintainers | mulesoft-npm |
| Keywords | anypoint-cli-plugin |

## Links

- npm: https://www.npmjs.com/package/anypoint-cli-pdk-plugin
- Repository: https://github.com/mulesoft/anypoint-cli-pdk-plugin
- Homepage: https://docs.mulesoft.com/runtime-manager/anypoint-platform-cli
- Issues: https://github.com/mulesoft/anypoint-cli-pdk-plugin/issues
- npm.io page: https://npm.io/package/anypoint-cli-pdk-plugin

## Dependencies (22)

- [ajv](https://npm.io/package/ajv.md) ^8.12.0
- [util](https://npm.io/package/util.md) ^0.12.4
- [axios](https://npm.io/package/axios.md) ^1.10.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [husky](https://npm.io/package/husky.md) ^8.0.3
- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [semver](https://npm.io/package/semver.md) ^7.5.0
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.5.10
- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1
- [ts-pattern](https://npm.io/package/ts-pattern.md) ^4.2.2
- [@oclif/core](https://npm.io/package/@oclif/core.md) 1.26.1
- [ajv-formats](https://npm.io/package/ajv-formats.md) ^2.1.1
- [json-schema](https://npm.io/package/json-schema.md) ^0.4.0
- [lodash.keyby](https://npm.io/package/lodash.keyby.md) 4.6.0
- [yaml-diff-patch](https://npm.io/package/yaml-diff-patch.md) ^2.0.0
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) 4.5.0
- [@types/json-schema](https://npm.io/package/@types/json-schema.md) ^7.0.11
- [anypoint-cli-command](https://npm.io/package/anypoint-cli-command.md) ^1.3.0
- [@oclif/plugin-version](https://npm.io/package/@oclif/plugin-version.md) 1.0.4
- [anypoint-cli-exchange-plugin](https://npm.io/package/anypoint-cli-exchange-plugin.md) 1.x.x
- [anypoint-cli-exchange-library](https://npm.io/package/anypoint-cli-exchange-library.md) 0.1.7

## Recent versions

- 1.6.0 (latest) — 2025-11-18
- 1.1.0 (prerelease) — 2024-05-10
- 1.5.0 — 2025-10-22
- 1.4.1 — 2025-06-27
- 1.4.0 — 2025-06-26
- 1.3.0 — 2025-03-19
- 1.2.0 — 2024-08-16
- 1.0.1 — 2024-03-14
- 1.0.0 — 2024-01-31
- 0.4.31 — 2023-08-11

## README

@mulesoft/pdk
================

pdk plugin

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@mulesoft/pdk.svg)](https://npmjs.org/package/@mulesoft/pdk)
[![Downloads/week](https://img.shields.io/npm/dw/@mulesoft/pdk.svg)](https://npmjs.org/package/@mulesoft/pdk)
[![License](https://img.shields.io/npm/l/@mulesoft/pdk.svg)](https://github.com/raul.suarez/pdk/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @mulesoft/anypoint-cli-pdk-plugin
$ @mulesoft/anypoint-cli-pdk-plugin COMMAND
running command...
$ @mulesoft/anypoint-cli-pdk-plugin (--version|-v)
@mulesoft/anypoint-cli-pdk-plugin/1.6.0-rc.0 darwin-arm64 node-v18.20.7
$ @mulesoft/anypoint-cli-pdk-plugin --help [COMMAND]
USAGE
  $ @mulesoft/anypoint-cli-pdk-plugin COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`@mulesoft/anypoint-cli-pdk-plugin conf [KEY] [VALUE]`](#mulesoftanypoint-cli-pdk-plugin-conf-key-value)
* [`@mulesoft/anypoint-cli-pdk-plugin help [COMMAND]`](#mulesoftanypoint-cli-pdk-plugin-help-command)
* [`@mulesoft/anypoint-cli-pdk-plugin pdk policy-project create`](#mulesoftanypoint-cli-pdk-plugin-pdk-policy-project-create)
* [`@mulesoft/anypoint-cli-pdk-plugin version`](#mulesoftanypoint-cli-pdk-plugin-version)

## `@mulesoft/anypoint-cli-pdk-plugin conf [KEY] [VALUE]`

Manage authentication credentials in a configuration file (config.json) 

```
USAGE
  $ @mulesoft/anypoint-cli-pdk-plugin conf [KEY] [VALUE] [-h] [-k <value>] [-v <value>] [-d]

ARGUMENTS
  KEY    key of the config
  VALUE  value of the config

FLAGS
  -d, --delete         delete config key
  -h, --help           Show CLI help.
  -k, --key=<value>    key of the config
  -v, --value=<value>  value of the config

DESCRIPTION
  Manage authentication credentials in a configuration file (config.json)
  by adding and removing key value pairs. Set one key value pair per command execution.
  CLI config file: /Users/pgarrett/Library/Preferences/oclif-nodejs/config.json

EXAMPLES
  $ @mulesoft/anypoint-cli-pdk-plugin conf username myuser

  $ @mulesoft/anypoint-cli-pdk-plugin conf password mypwd
```

## `@mulesoft/anypoint-cli-pdk-plugin help [COMMAND]`

Display help for @mulesoft/anypoint-cli-pdk-plugin.

```
USAGE
  $ @mulesoft/anypoint-cli-pdk-plugin help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for @mulesoft/anypoint-cli-pdk-plugin.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.12/src/commands/help.ts)_

## `@mulesoft/anypoint-cli-pdk-plugin pdk policy-project create`

Create a project to develop a new Policy

```
USAGE
  $ @mulesoft/anypoint-cli-pdk-plugin pdk policy-project create [--password <value> [--username <value> | --client_id <value> |
    ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>] [--host
    <value>] [--collectMetrics] [-h] [-o <value>] [-n <value>] [-d <value>] [--version <value>] [--category <value>]
    [--provided-characteristics <value>] [--interface-scope <value>] [--is-sla-based] [--requires-spec]
    [--injection-point inbound|outbound] [--asset-types <value>] [--identity-management-type
    OpenAM|PingFederate|OpenIdConnect] [--interface-transformation-raml <value>] [--interface-transformation-raml-v1
    <value>] [--interface-transformation-oas-v2 <value>] [--interface-transformation-oas-v3 <value>]
    [--implementation-technology flexGateway|mule4]

FLAGS
  -d, --description=<value>
      The description of the policy to generate. You can define this in the POLICY_DESCRIPTION environment variable.

  -h, --help
      Show CLI help.

  -n, --name=<value>
      The name of the policy to generate. It accepts letters, numbers, whitespaces, underscores and dashes. You can define
      this in the POLICY_NAME environment variable.

  -o, --output-dir=<value>
      The directory in which the policy will be created. If the directory does not exists, it will be created. If not
      provided, the policy will be created in a directory that matches the policy definition assetId. You can define this
      in the POLICY_PROJECT_PATH environment variable.

  --asset-types=<value>...
      Specifies the asset types that the policy can be applied to. You can define this in the POLICY_ASSET_TYPES
      environment variable.

  --bearer=<value>
      Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.

  --category=<value>
      [default: Custom] The category of the policy to initialize. You can define this in the POLICY_CATEGORY environment
      variable.

  --client_id=<value>
      Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.

  --client_secret=<value>
      Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.

  --[no-]collectMetrics
      collect metrics. You can define this in the COLLECT_METRICS environment variable.

  --environment=<value>
      Environment Name. You can define this in the ANYPOINT_ENV environment variable.

  --host=anypoint.mulesoft.com
      [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST environment variable.

  --identity-management-type=(OpenAM|PingFederate|OpenIdConnect)
      If applicable, classify the type of identity management provided by the policy. You can define this in the
      POLICY_IDENTITY_MANAGEMENT_TYPE environment variable.

  --implementation-technology=(flexGateway|mule4)
      [default: flexGateway] Specifies the implementation technology injection for the custom policy. You can define this
      in the POLICY_IMPLEMENTATION_TECHNOLOGY environment variable.

  --injection-point=(inbound|outbound)
      Specifies if the policy injection point is inbound or outbound. You can define this in the POLICY_INJECTION_POINT
      environment variable.

  --interface-scope=<value>...
      [default: api,resource] The scopes where the policy can be applied. Possible scopes are "api" and "resource". You
      can define this in the POLICY_INTERFACE_SCOPE environment variable, using comma (",") to separate values.

  --interface-transformation-oas-v2=<value>
      An OAS v2 snippet that shows how the policy affects an API specification, in markdown format. You can define this in
      the POLICY_INTERFACE_TRANSFORMATION_OAS_V2 environment variable.

  --interface-transformation-oas-v3=<value>
      An OAS v3 snippet that shows how the policy affects an API specification, in markdown format. You can define this in
      the POLICY_INTERFACE_TRANSFORMATION_OAS_V3 environment variable.

  --interface-transformation-raml=<value>
      A RAML v0.8 snippet that shows how the policy affects an API specification, in markdown format. You can define this
      in the POLICY_INTERFACE_TRANSFORMATION_RAML environment variable.

  --interface-transformation-raml-v1=<value>
      A RAML v1.0 snippet that shows how the policy affects an API specification, in markdown format. You can define this
      in the POLICY_INTERFACE_TRANSFORMATION_RAML_V1 environment variable.

  --is-sla-based
      Whether the policy is based on API consumption SLA tiers or not. You can define this in the POLICY_IS_SLA_BASED
      environment variable.

  --organization=<value>
      Organization Name. You can define this in the ANYPOINT_ORG environment variable.

  --password=<value>
      Password. You can define this in the ANYPOINT_PASSWORD environment variable.

  --provided-characteristics=<value>...
      [default: ] The characteristics that will be provided by the policy. You can define this in the
      POLICY_PROVIDED_CHARACTERISTICS environment variable, using comma (",") to separate values.

  --requires-spec
      Whether the policy requires an API specification or not. You can define this in the POLICY_REQUIRES_SPEC environment
      variable.

  --username=<value>
      Username. You can define this in the ANYPOINT_USERNAME environment variable.

  --version=<value>
      [default: 1.0.0] The initial version of the policy to generate, with format <major>.<minor>.<patch>. You can define
      this in the POLICY_VERSION environment variable.

DESCRIPTION
  Create a project to develop a new Policy
```

## `@mulesoft/anypoint-cli-pdk-plugin version`

```
USAGE
  $ @mulesoft/anypoint-cli-pdk-plugin version
```

_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.0.4/src/commands/version.ts)_
<!-- commandsstop -->

---
_Source: https://npm.io/package/anypoint-cli-pdk-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
