anypoint-cli-api-mgr-plugin
===========================

API Manager plugin

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

<!-- toc -->
* [Usage](#usage)
* [Local development](#local-development)
* [or npm run build](#or-npm-run-build)
* [node bin/run command --parameters](#node-binrun-command---parameters)
* [example](#example)
* [npm run buildAndRun -- <command> -- extraParameters](#npm-run-buildandrun----command----extraparameters)
* [example:](#example-1)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @mulesoft/anypoint-cli-api-mgr-plugin
$ @mulesoft/anypoint-cli-api-mgr-plugin COMMAND
running command...
$ @mulesoft/anypoint-cli-api-mgr-plugin (--version|-v)
@mulesoft/anypoint-cli-api-mgr-plugin/0.4.0 darwin-x64 node-v16.14.2
$ @mulesoft/anypoint-cli-api-mgr-plugin --help [COMMAND]
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin COMMAND
...
```
<!-- usagestop -->

# Local development
<!-- localDevelopment -->
You can run the commands directly from your copy without installing it.

First of all install dependencies:

```sh-session
npm ci
```

Then you need to build the plugin from the sources:

```sh-session
npm run dev
# or npm run build
```
Please note that you will need to re-build to see your changes working.

Now you can run your commands calling:

```sh-session
# node bin/run command --parameters
# example
node bin/run api-mgr:api:list --username 'username' --password 'password' --environment 'Sandbox'  --host qax.anypoint.mulesoft.com
```

Please note that `--host` is only mandatory if you want to hit other environments that are not PROD US.

You can improve the experience export some env vars to not provide the same parameters in each command

```sh-session
export ANYPOINT_ENV='Sandbox'
export ANYPOINT_USERNAME='username'
export ANYPOINT_PASSWORD='password'
export ANYPOINT_HOST='qax.anypoint.mulesoft.com'
node bin/run api-mgr:api:list
```

For each command you can export other env vars, check [Commands](#commands) section to see each one.

Please note that in current state of the development running the tests with envar `ANYPOINT_HOST` will cause a lot of fails, it seems the nocks are based on the default uri and the tests are using the env var causing calls to a different URIs.

## Re-build on run

There is a npm command that allow us to re-build the code each time we want to run a command, it's the current easiest way of be sure that the running code is the latest.You can run your commands calling:

```sh-session
# npm run buildAndRun -- <command> -- extraParameters
# example:
npm run buildAndRun -- api-mgr:api:list --host stgx.anypoint.mulesoft.com
```
Please note that to make it work you need to add `--` before the command you want to run.

## Enable debug with source maps
The default configuration of `tsconfig.json` and `tsconfig.lib.json` doesn't create the source maps to debug typescript files.

In order to enable sourcemaps you need to add the `"sourceMap": true` property to both files.

Example:
```typescript
{
  "compilerOptions": {
    "declaration": true,
      "importHelpers": true,
      "module": "commonjs",
      "outDir": "lib",
      "rootDir": "src",
      "strict": true,
      "target": "es2019",
      "useUnknownInCatchVariables": false,
      "skipLibCheck": true,
      "sourceMap": true
  },
  "include": [
    "src/**/*"
  ]
}
```

## Tests

Please be sure that `ANYPOINT_HOST` is not set. You can run `unset ANYPOINT_HOST` to clean that env var. Then you can use the command `npm run test` to run all the tests.

### Testing with .only
The command `npm run test` run all the tests, and will fail if there is a `.only` in one of your test files. It will also run a linter.

If you want a fast feedback about your changes you can use the command `npm run localTest` it allows `.only` on your test files and won't run the linter.

<!-- localDevelopmentStop -->
# Commands
<!-- commands -->
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:abstract-api-mgr-command`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrabstract-api-mgr-command)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-add`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertabstract-alert-add)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-list APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertabstract-alert-list-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add APIINSTANCEID NAME`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertadd-apiinstanceid-name)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add-legacy APIINSTANCEID NAME`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertadd-legacy-apiinstanceid-name)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertlist-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list-legacy APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgralertlist-legacy-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:autodiscovery APIINSTANCEID GATEWAYVERSION`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapiautodiscovery-apiinstanceid-gatewayversion)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:change-specification APIINSTANCEID ASSETVERSION`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapichange-specification-apiinstanceid-assetversion)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:classify DESTENVNAME APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapiclassify-destenvname-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:delete APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapidelete-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deploy APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapideploy-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deprecate APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapideprecate-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:describe APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapidescribe-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:download-proxy APIINSTANCEID TARGETPATH`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapidownload-proxy-apiinstanceid-targetpath)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:edit APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapiedit-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:list`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapilist)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:manage ASSETID ASSETVERSION [GROUPID]`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapimanage-assetid-assetversion-groupid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:promote APIINSTANCEID SOURCEENVID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapipromote-apiinstanceid-sourceenvid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:redeploy APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapiredeploy-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:undeprecate APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrapiundeprecate-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:delete APIINSTANCEID CLIENTID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrcontractdelete-apiinstanceid-clientid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:list APIINSTANCEID [SEARCHTEXT]`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrcontractlist-apiinstanceid-searchtext)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:apply APIINSTANCEID POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicyapply-apiinstanceid-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:describe POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicydescribe-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:disable APIINSTANCEID POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicydisable-apiinstanceid-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:edit APIINSTANCEID POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicyedit-apiinstanceid-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:enable APIINSTANCEID POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicyenable-apiinstanceid-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:list [APIINSTANCEID]`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicylist-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:order APIINSTANCEID [ORDER]`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicyorder-apiinstanceid-order)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:remove APIINSTANCEID POLICYID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrpolicyremove-apiinstanceid-policyid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:add APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrtieradd-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:copy SOURCEAPIINSTANCEID TARGETAPIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrtiercopy-sourceapiinstanceid-targetapiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:delete APIINSTANCEID TIERID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrtierdelete-apiinstanceid-tierid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:list APIINSTANCEID [SEARCHTEXT]`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrtierlist-apiinstanceid-searchtext)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:add APIINSTANCEID URI`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrupstreamadd-apiinstanceid-uri)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:bulk-edit APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrupstreambulk-edit-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:delete APIINSTANCEID UPSTREAMID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrupstreamdelete-apiinstanceid-upstreamid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:edit APIINSTANCEID UPSTREAMID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrupstreamedit-apiinstanceid-upstreamid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:list APIINSTANCEID`](#mulesoftanypoint-cli-api-mgr-plugin-api-mgrupstreamlist-apiinstanceid)
* [`@mulesoft/anypoint-cli-api-mgr-plugin conf [KEY] [VALUE]`](#mulesoftanypoint-cli-api-mgr-plugin-conf-key-value)
* [`@mulesoft/anypoint-cli-api-mgr-plugin help [COMMAND]`](#mulesoftanypoint-cli-api-mgr-plugin-help-command)
* [`@mulesoft/anypoint-cli-api-mgr-plugin version`](#mulesoftanypoint-cli-api-mgr-plugin-version)

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:abstract-api-mgr-command`

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:abstract-api-mgr-command [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [-o <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.
```

_See code: [src/commands/api-mgr/abstract-api-mgr-command.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/abstract-api-mgr-command.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-add`

Create API instance alert

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-add [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [-o <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Create API instance alert
```

_See code: [src/commands/api-mgr/alert/abstract-alert-add.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/abstract-alert-add.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-list APIINSTANCEID`

List alerts for an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:abstract-alert-list [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset <value>] [--sort <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                [default: id] Field to sort results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List alerts for an API instance
```

_See code: [src/commands/api-mgr/alert/abstract-alert-list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/abstract-alert-list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add APIINSTANCEID NAME`

Create API instance alert

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add [APIINSTANCEID] [NAME] --severity info|warning|critical
    --type request-count|response-code|policy-violation|response-time --operator eq|ab|abeq|bleq|bl --threshold <value>
    --periods <value> [--password <value> [--username <value> | --client_id <value> | ]] [--client_secret <value> ]
    [--bearer <value> |  | ] [--organization <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o
    <value>] [-h] [--recipient <value>] [--email <value>] [--responseTime <value>] [--responseCode <value>] [--policyId
    <value>] [--subject <value>] [--message <value>]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --email=<value>...            Email to send alert notification to. Can be used multiple times to specify multiple
                                emails
  --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.
  --message=<value>             Message of the alert notification
  --operator=<option>           (required) Condition operator explaining values relation to threshold
                                <options: eq|ab|abeq|bleq|bl>
  --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.
  --periods=<value>             (required) Number of consecutive periods condition should occur for
  --policyId=<value>            ID of a policy applied to API instance to trigger "policy-violation" alert type
  --recipient=<value>...        Username to send alert notification to. Can be used multiple times to specify multiple
                                usernames
  --responseCode=<value>...     Response codes to trigger "response-code" alert type. Can be used multiple times to
                                specify multiple codes
  --responseTime=<value>        Response time to trigger "response-time" alert type
  --severity=<option>           (required) Alert severity
                                <options: info|warning|critical>
  --subject=<value>             Subject of the alert notification
  --threshold=<value>           (required) Condition occurrences threshold number
  --type=<option>               (required) Alert type/condition
                                <options: request-count|response-code|policy-violation|response-time>
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Create API instance alert
```

_See code: [src/commands/api-mgr/alert/add.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/add.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add-legacy APIINSTANCEID NAME`

Create API instance alert

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:add-legacy [APIINSTANCEID] [NAME] --severity Info|Warning|Critical
    --type request-count|response-code|policy-violation|response-time --operator gt|lt|eq --threshold <value> --periods
    <value> --duration <value> --durationUnit days|hours|minutes [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [-o <value>] [-h] [--enabled] [--recipient <value>] [--email <value>]
    [--responseTime <value>] [--responseCode <value>] [--policyId <value>]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --duration=<value>            (required) Condition occurrence period duration
  --durationUnit=<option>       (required) Condition occurrence period duration unit
                                <options: days|hours|minutes>
  --email=<value>...            Email to send alert notification to. Can be used multiple times to specify multiple
                                emails
  --enabled                     Whether alert should be enabled
  --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.
  --operator=<option>           (required) Condition operator explaining values relation to threshold
                                <options: gt|lt|eq>
  --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.
  --periods=<value>             (required) Number of consecutive periods condition should occur for
  --policyId=<value>            ID of a policy applied to API instance to trigger "policy-violation" alert type
  --recipient=<value>...        Username to send alert notification to. Can be used multiple times to specify multiple
                                usernames
  --responseCode=<value>...     Response codes to trigger "response-code" alert type. Can be used multiple times to
                                specify multiple codes
  --responseTime=<value>        Response time to trigger "response-time" alert type
  --severity=<option>           (required) Alert severity
                                <options: Info|Warning|Critical>
  --threshold=<value>           (required) Condition occurrences threshold number
  --type=<option>               (required) Alert type/condition
                                <options: request-count|response-code|policy-violation|response-time>
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Create API instance alert
```

_See code: [src/commands/api-mgr/alert/add-legacy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/add-legacy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list APIINSTANCEID`

List alerts for an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset <value>] [--sort <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                [default: id] Field to sort results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List alerts for an API instance
```

_See code: [src/commands/api-mgr/alert/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list-legacy APIINSTANCEID`

List alerts for an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:alert:list-legacy [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset <value>] [--sort <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                [default: id] Field to sort results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List alerts for an API instance
```

_See code: [src/commands/api-mgr/alert/list-legacy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/alert/list-legacy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:autodiscovery APIINSTANCEID GATEWAYVERSION`

Show details of an API autodiscovery

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:autodiscovery [APIINSTANCEID] [GATEWAYVERSION] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Show details of an API autodiscovery
```

_See code: [src/commands/api-mgr/api/autodiscovery.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/autodiscovery.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:change-specification APIINSTANCEID ASSETVERSION`

Change asset version for an API instance by choosing a new version from Exchange

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:change-specification [APIINSTANCEID] [ASSETVERSION] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Change asset version for an API instance by choosing a new version from Exchange
```

_See code: [src/commands/api-mgr/api/change-specification.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/change-specification.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:classify DESTENVNAME APIINSTANCEID`

Classify an API instance in a given environment

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:classify [DESTENVNAME] [APIINSTANCEID] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Classify an API instance in a given environment
```

_See code: [src/commands/api-mgr/api/classify.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/classify.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:delete APIINSTANCEID`

Deletes an API

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:delete [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Deletes an API
```

_See code: [src/commands/api-mgr/api/delete.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/delete.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deploy APIINSTANCEID`

Deploy an API to Cloudhub, Hybrid server or Runtime Fabric

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deploy [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--target <value>] [--applicationName <value>]
    [--environmentName <value>] [--gatewayVersion <value>] [--overwrite] [--javaVersion <value>] [--releaseChannel
    <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --applicationName=<value>     Application name
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --environmentName=<value>     Target environment name. Must be provided to deploy APIs from unclassified environments.
  --gatewayVersion=<value>      Cloudhub Gateway version
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --javaVersion=<value>         Gateway java version
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --overwrite                   Update application if exists
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --releaseChannel=<value>      Gateway release channel
  --target=<value>              Hybrid or RTF deployment target ID
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Deploy an API to Cloudhub, Hybrid server or Runtime Fabric
```

_See code: [src/commands/api-mgr/api/deploy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/deploy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deprecate APIINSTANCEID`

Deprecate an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:deprecate [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Deprecate an API instance
```

_See code: [src/commands/api-mgr/api/deprecate.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/deprecate.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:describe APIINSTANCEID`

Show details of an API

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:describe [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Show details of an API
```

_See code: [src/commands/api-mgr/api/describe.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/describe.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:download-proxy APIINSTANCEID TARGETPATH`

Download API proxy zip file to a local directory

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:download-proxy [APIINSTANCEID] [TARGETPATH] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [--gatewayVersion <value>]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --gatewayVersion=<value>      Gateway Version. Defaults to the latest version.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Download API proxy zip file to a local directory
```

_See code: [src/commands/api-mgr/api/download-proxy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/download-proxy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:edit APIINSTANCEID`

Edit an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:edit [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-p] [-r] [-m] [--deploymentType
    cloudhub|cloudhub2|hybrid|rtf] [--uri <value>] [--scheme http|https] [--port <value>] [--path <value>] [--providerId
    <value>] [--responseTimeout <value>] [--apiInstanceLabel <value>] [--serviceName <value>] [--serviceNamespace
    <value>] [--servicePort <value>] [--endpointUri <value>] [--type http|raml|wsdl|mcp|a2a|llm|grpc] [-f]
    [--inboundSecretGroupId <value> --inboundTlsContextId <value>] [--outboundSecretGroupId <value>
    --outboundTlsContextId <value>] [--routing <value>] [--updateApisInSamePort]

FLAGS
  -f, --isFlex                     Indicates whether you are managing this API in FlexGateway.
  -m, --muleVersion4OrAbove        Indicates whether you are managing this API in Mule 4 or above.
  -o, --output=<value>             [default: table] Format for commands output. Supported values are table (default) and
                                   json
  -p, --withProxy                  Indicates whether the endpoint should use a proxy.
  -r, --referencesUserDomain       Indicates whether a proxy should reference a user domain
  --apiInstanceLabel=<value>       API instance label. Optional. String.
  --bearer=<value>                 Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --deploymentType=<option>        Deployment type. Supported Values: cloudhub, cloudhub2, hybrid, rtf
                                   <options: cloudhub|cloudhub2|hybrid|rtf>
  --endpointUri=<value>            Consumer endpoint URL
  --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.
  --inboundSecretGroupId=<value>   Secret Group ID for inbound TLS Context
  --inboundTlsContextId=<value>    Inbound TLS Context ID
  --organization=<value>           Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --outboundSecretGroupId=<value>  Secret Group ID for outbound TLS Context
  --outboundTlsContextId=<value>   Outbound TLS Context ID
  --password=<value>               Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --path=<value>                   Proxy path
  --port=<value>                   Proxy port
  --providerId=<value>             Client Identity Provider Id in which the API will be associated with. Optional.
                                   String.
  --responseTimeout=<value>        Response timeout
  --routing=<value>                API instance routes array. E.g. [{"label": "Rule 1", "rules": {"path": "/path"},
                                   "upstreams": [{"id": "upstream-id", "weight": 100}]}]
  --scheme=<option>                Proxy scheme. Supported Values: http, https
                                   <options: http|https>
  --serviceName=<value>            WSDL service name
  --serviceNamespace=<value>       WSDL service namespace
  --servicePort=<value>            WSDL service port
  --type=<option>                  Endpoint type. Supported Values: http, raml, wsdl, mcp, a2a, llm, grpc
                                   <options: http|raml|wsdl|mcp|a2a|llm|grpc>
  --updateApisInSamePort           If the TLS context does not match that of the other APIS deployed on the same port,
                                   it forces the TLS context switch on all other APIs.
  --uri=<value>                    Implementation URI
  --username=<value>               Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Edit an API instance
```

_See code: [src/commands/api-mgr/api/edit.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/edit.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:list`

Lists all APIs in API Manager

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:list [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset <value>] [--sort <value>] [-h]
    [--assetId <value>] [--apiVersion <value>] [--instanceLabel <value>]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --apiVersion=<value>          API version to filter results by
  --assetId=<value>             Asset ID to filter results by
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --instanceLabel=<value>       API instance label to filter results by
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                How to sort the results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Lists all APIs in API Manager
```

_See code: [src/commands/api-mgr/api/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:manage ASSETID ASSETVERSION [GROUPID]`

Manage a new API or API version or new instance with an asset from exchange. When [groupId] param is not specified the current organization is used.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:manage [ASSETID] [ASSETVERSION] [GROUPID] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-p] [-r] [-m] [--deploymentType
    cloudhub|cloudhub2|hybrid|rtf] [--uri <value>] [--scheme http|https] [--port <value>] [--path <value>] [--providerId
    <value>] [--responseTimeout <value>] [--apiInstanceLabel <value>] [--serviceName <value>] [--serviceNamespace
    <value>] [--servicePort <value>] [--endpointUri <value>] [--type http|raml|wsdl|mcp|a2a|llm|grpc] [-f]
    [--inboundSecretGroupId <value> --inboundTlsContextId <value>] [--outboundSecretGroupId <value>
    --outboundTlsContextId <value>] [--routing <value>]

FLAGS
  -f, --isFlex                     Indicates whether you are managing this API in FlexGateway.
  -m, --muleVersion4OrAbove        Indicates whether you are managing this API in Mule 4 or above.
  -o, --output=<value>             [default: table] Format for commands output. Supported values are table (default) and
                                   json
  -p, --withProxy                  Indicates whether the endpoint should use a proxy.
  -r, --referencesUserDomain       Indicates whether a proxy should reference a user domain
  --apiInstanceLabel=<value>       API instance label. Optional. String.
  --bearer=<value>                 Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --deploymentType=<option>        Deployment type. Supported Values: cloudhub, cloudhub2, hybrid, rtf
                                   <options: cloudhub|cloudhub2|hybrid|rtf>
  --endpointUri=<value>            Consumer endpoint URL
  --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.
  --inboundSecretGroupId=<value>   Secret Group ID for inbound TLS Context
  --inboundTlsContextId=<value>    Inbound TLS Context ID
  --organization=<value>           Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --outboundSecretGroupId=<value>  Secret Group ID for outbound TLS Context
  --outboundTlsContextId=<value>   Outbound TLS Context ID
  --password=<value>               Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --path=<value>                   Proxy path
  --port=<value>                   Proxy port
  --providerId=<value>             Client Identity Provider Id in which the API will be associated with. Optional.
                                   String.
  --responseTimeout=<value>        Response timeout
  --routing=<value>                API instance routes array. E.g. [{"label": "Rule 1", "rules": {"path": "/path"},
                                   "upstreams": [{"id": "upstream-id", "weight": 100}]}]
  --scheme=<option>                Proxy scheme. Supported Values: http, https
                                   <options: http|https>
  --serviceName=<value>            WSDL service name
  --serviceNamespace=<value>       WSDL service namespace
  --servicePort=<value>            WSDL service port
  --type=<option>                  Endpoint type. Supported Values: http, raml, wsdl, mcp, a2a, llm, grpc
                                   <options: http|raml|wsdl|mcp|a2a|llm|grpc>
  --uri=<value>                    Implementation URI
  --username=<value>               Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Manage a new API or API version or new instance with an asset from exchange. When [groupId] param is not specified the
  current organization is used.
```

_See code: [src/commands/api-mgr/api/manage.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/manage.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:promote APIINSTANCEID SOURCEENVID`

Promote an API instance from source environment

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:promote [APIINSTANCEID] [SOURCEENVID] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [-a true|false] [-p
    true|false] [-t true|false] [--providerId <value>]

FLAGS
  -a, --copyAlerts=<option>     [default: true] Indicates whether to copy alerts. Accepted Values: true, false. Defaults
                                to true
                                <options: true|false>
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  -p, --copyPolicies=<option>   [default: true] Indicates whether to copy policies. Accepted Values: true, false.
                                Defaults to true
                                <options: true|false>
  -t, --copyTiers=<option>      [default: true] Indicates whether to copy tiers. Accepted Values: true, false. Defaults
                                to true
                                <options: true|false>
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --providerId=<value>          Client Identity Provider Id in which the promoted API will be associated with
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Promote an API instance from source environment
```

_See code: [src/commands/api-mgr/api/promote.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/promote.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:redeploy APIINSTANCEID`

Deploy an API to Cloudhub, Hybrid server or Runtime Fabric

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:redeploy [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--target <value>] [--applicationName <value>]
    [--environmentName <value>] [--gatewayVersion <value>] [--overwrite] [--javaVersion <value>] [--releaseChannel
    <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --applicationName=<value>     Application name
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --environmentName=<value>     Target environment name. Must be provided to deploy APIs from unclassified environments.
  --gatewayVersion=<value>      Cloudhub Gateway version
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --javaVersion=<value>         Gateway java version
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --overwrite                   Update application if exists
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --releaseChannel=<value>      Gateway release channel
  --target=<value>              Hybrid or RTF deployment target ID
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Deploy an API to Cloudhub, Hybrid server or Runtime Fabric
```

_See code: [src/commands/api-mgr/api/redeploy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/redeploy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:undeprecate APIINSTANCEID`

Undeprecate an API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:api:undeprecate [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Undeprecate an API instance
```

_See code: [src/commands/api-mgr/api/undeprecate.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/api/undeprecate.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:delete APIINSTANCEID CLIENTID`

Delete a given API contract

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:delete [APIINSTANCEID] [CLIENTID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Delete a given API contract
```

_See code: [src/commands/api-mgr/contract/delete.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/contract/delete.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:list APIINSTANCEID [SEARCHTEXT]`

Lists all contracts to a given API instanceLists environments

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:contract:list [APIINSTANCEID] [SEARCHTEXT] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset
    <value>] [--sort <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                [default: id] Field to sort results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Lists all contracts to a given API instanceLists environments
```

_See code: [src/commands/api-mgr/contract/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/contract/list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:apply APIINSTANCEID POLICYID`

Apply a policy to a given API instance. Examples:

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:apply [APIINSTANCEID] [POLICYID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [--policyVersion <value>] [--groupId
    <value>] [-c <value>] [--configFile <value>] [--pointcut <value>] [--upstreamId <value>] [--label <value>]
    [--allowDuplicated] [-h]

FLAGS
  -c, --config=<value>          Configuration data as JSON string. E.g `api-mgr policy apply (...) -c '{"property":
                                "value"}'`
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --allowDuplicated             If provided, allows the Policy to be applied multiple times on the API Instance. E.g.
                                `api-mgr policy apply (...) --allowDuplicated`
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --configFile=<value>          Configuration data as JSON file. E.g `api-mgr policy apply (...) --configFile
                                ./configFile.json`
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --groupId=<value>             Mule4 or Flex policy group ID. Defaults to MuleSoft group ID when not provided
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --label=<value>               Label to identify the policy. E.g. `api-mgr policy apply (...) --label "My Policy"`
  --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.
  --pointcut=<value>            Pointcut data as JSON string. E.g. `api-mgr policy apply (...) -p
                                '[{"methodRegex":"GET|PUT","uriTemplateRegex":"/users*"}]'`
  --policyVersion=<value>       Mule4 or Flex policy version
  --upstreamId=<value>          Upstream ID to apply an outbound policy to. E.g. `api-mgr policy apply (...) -u 123456
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Apply a policy to a given API instance. Examples:
  Mule 3: api-mgr policy apply 123 client-id-enforcement
  The policyId corresponds to Id in the response of api-mgr policy list.
  Mule 4 and Flex: api-mgr policy apply 123 client-id-enforcement --policyVersion 1.0.0
  The policyId, policyVersion correspond to Asset ID and Version in the response of api-mgr policy list -m
```

_See code: [src/commands/api-mgr/policy/apply.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/apply.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:describe POLICYID`

Show the description and available configuration properties of a given policy template. Examples:

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:describe [POLICYID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [--policyVersion <value>] [--groupId <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --groupId=<value>             Mule4 or Flex policy group ID. Defaults to MuleSoft group ID when not provided
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                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.
  --policyVersion=<value>       Mule4 or Flex policy version
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Show the description and available configuration properties of a given policy template. Examples:
  Mule 3: api-mgr policy describe client-id-enforcement
  The policyId corresponds to Id in the response of api-mgr policy list.
  Mule 4 and Flex: api-mgr policy describe client-id-enforcement --policyVersion 1.0.0
  The policyId, policyVersion correspond to Asset ID and Version in the response of api-mgr policy list -m
```

_See code: [src/commands/api-mgr/policy/describe.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/describe.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:disable APIINSTANCEID POLICYID`

Disable a policy from a given API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:disable [APIINSTANCEID] [POLICYID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Disable a policy from a given API instance
```

_See code: [src/commands/api-mgr/policy/disable.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/disable.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:edit APIINSTANCEID POLICYID`

Edit the policy configuration of a given API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:edit [APIINSTANCEID] [POLICYID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-c <value>] [--configFile <value>] [-p
    <value>] [--label <value>] [--allowDuplicated] [-h]

FLAGS
  -c, --config=<value>          Configuration data as JSON string. Completely overrides current configuration data. E.g.
                                `api-mgr policy edit (...) -c '{"property": "value"}'`
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  -p, --pointcut=<value>        Pointcut data as JSON string. Completely overrides current Pointcut data. E.g. `api-mgr
                                policy edit (...) -p '[{"methodRegex":"GET|PUT","uriTemplateRegex":"/users*"}]'`
  --allowDuplicated             If provided, allows the Policy to be applied multiple times on the API Instance. E.g.
                                `api-mgr policy apply (...) --allowDuplicated`
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --configFile=<value>          Configuration data as JSON file. E.g `api-mgr policy edit (...) --configFile
                                ./configFile.json`
  --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.
  --label=<value>               Label to identify the policy. E.g. `api-mgr policy apply (...) --label "My Policy"` or
                                `--label "null"` to remove the label
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Edit the policy configuration of a given API instance
```

_See code: [src/commands/api-mgr/policy/edit.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/edit.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:enable APIINSTANCEID POLICYID`

Enable a policy from a given API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:enable [APIINSTANCEID] [POLICYID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Enable a policy from a given API instance
```

_See code: [src/commands/api-mgr/policy/enable.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/enable.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:list [APIINSTANCEID]`

List policies. When [apiInstanceId] param is specified, policies applied to that API instance are listed. All available policies are listed otherwise

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:list [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-m] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -m, --muleVersion4OrAbove     Whether to list Mule 4+ and Flex policies
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List policies. When [apiInstanceId] param is specified, policies applied to that API instance are listed. All
  available policies are listed otherwise
```

_See code: [src/commands/api-mgr/policy/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:order APIINSTANCEID [ORDER]`

Set order for policies. When [order] param is specified, that order will be applied to the policies for the API instance sent.Current order is shown otherwise

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:order [APIINSTANCEID] [ORDER] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [--commaSeparated] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --commaSeparated              Indicates whether you are sending a comma separated list of policies.
  --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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Set order for policies. When [order] param is specified, that order will be applied to the policies for the API
  instance sent.Current order is shown otherwise
```

_See code: [src/commands/api-mgr/policy/order.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/order.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:remove APIINSTANCEID POLICYID`

Remove a policy from a given API instance

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:policy:remove [APIINSTANCEID] [POLICYID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Remove a policy from a given API instance
```

_See code: [src/commands/api-mgr/policy/remove.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/policy/remove.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:add APIINSTANCEID`

Create SLA tier.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:add [APIINSTANCEID] --name <value> [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [--description <value>] [-l
    <value>] [-a]

FLAGS
  -a, --autoApprove
      Indicates whether tier should be auto-approved.

  -h, --help
      Show CLI help.

  -l, --limit=<value>...
      Single instance of a tier limit in the form "--limit A,B,C" whereby:
      "A" is a boolean indicating whether or not this limit should be visible;
      "B" is a number of requests per "C" time period.
      Time period options are: ms(millisecond), sec(second),  min(minute), hr(hour), d(day), wk(week), mo(month) or
      yr(year).
      E.g. "--limit true,100,min" is a "visible" limit of 100 requests per minute.
      To create multiple limits, you can provide multiple "--limit" options.
      E.g. "-l true,100,sec -l false,20,min"

  -o, --output=<value>
      [default: table] Format for commands output. Supported values are table (default) and json

  --bearer=<value>
      Token Bearer. You can define this in the ANYPOINT_BEARER 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.

  --description=<value>
      Tier description

  --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.

  --name=<value>
      (required) Tier name

  --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.

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

DESCRIPTION
  Create SLA tier.
```

_See code: [src/commands/api-mgr/tier/add.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/tier/add.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:copy SOURCEAPIINSTANCEID TARGETAPIINSTANCEID`

Copy SLA tiers from source to target API Instance.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:copy [SOURCEAPIINSTANCEID] [TARGETAPIINSTANCEID] [--password
    <value> [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ]
    [--organization <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Copy SLA tiers from source to target API Instance.
```

_See code: [src/commands/api-mgr/tier/copy.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/tier/copy.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:delete APIINSTANCEID TIERID`

Delete SLA tier from an API instance.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:delete [APIINSTANCEID] [TIERID] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Delete SLA tier from an API instance.
```

_See code: [src/commands/api-mgr/tier/delete.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/tier/delete.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:list APIINSTANCEID [SEARCHTEXT]`

Lists API instance SLA tiers

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:tier:list [APIINSTANCEID] [SEARCHTEXT] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [--limit <value>] [--offset
    <value>] [--sort <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --limit=<value>               [default: 10] Number of results to retrieve
  --offset=<value>              Offset
  --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.
  --sort=<value>                [default: id] Field to sort results
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Lists API instance SLA tiers
```

_See code: [src/commands/api-mgr/tier/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/tier/list.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:add APIINSTANCEID URI`

Create an API instance upstream.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:add [APIINSTANCEID] [URI] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [--label <value>] [--tlsContextId
    <value>] [--tlsContextSecretGroupId <value>]

FLAGS
  -h, --help                         Show CLI help.
  -o, --output=<value>               [default: table] Format for commands output. Supported values are table (default)
                                     and json
  --bearer=<value>                   Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --label=<value>                    Sets a label for the upstream
  --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.
  --tlsContextId=<value>             TLS Context ID to set to the upstream
  --tlsContextSecretGroupId=<value>  ID of the the Secret Group of the TLS Context specified in --tlsContextId
  --username=<value>                 Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Create an API instance upstream.
```

_See code: [src/commands/api-mgr/upstream/add.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/upstream/add.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:bulk-edit APIINSTANCEID`

Bulk edit TLS Context for all API instance upstreams using a single API update.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:bulk-edit [APIINSTANCEID] --tlsContextId <value> [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [--tlsContextSecretGroupId
    <value>]

FLAGS
  -h, --help                         Show CLI help.
  -o, --output=<value>               [default: table] Format for commands output. Supported values are table (default)
                                     and json
  --bearer=<value>                   Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --tlsContextId=<value>             (required) TLS Context ID to set on all upstreams, or 'null' to remove TLS Context.
  --tlsContextSecretGroupId=<value>  Secret Group ID for the TLS Context specified in --tlsContextId
  --username=<value>                 Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Bulk edit TLS Context for all API instance upstreams using a single API update.
```

_See code: [src/commands/api-mgr/upstream/bulk-edit.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/upstream/bulk-edit.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:delete APIINSTANCEID UPSTREAMID`

Delete upstream from an API instance.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:delete [APIINSTANCEID] [UPSTREAMID] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Delete upstream from an API instance.
```

_See code: [src/commands/api-mgr/upstream/delete.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/upstream/delete.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:edit APIINSTANCEID UPSTREAMID`

Edit an API instance upstream.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:edit [APIINSTANCEID] [UPSTREAMID] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h] [--uri <value>] [--label
    <value>] [--tlsContextId <value>] [--tlsContextSecretGroupId <value>]

FLAGS
  -h, --help                         Show CLI help.
  -o, --output=<value>               [default: table] Format for commands output. Supported values are table (default)
                                     and json
  --bearer=<value>                   Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --label=<value>                    Sets a label for the upstream
  --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.
  --tlsContextId=<value>             TLS Context ID to set to the upstream, or 'null' to delete the TLS Context.
  --tlsContextSecretGroupId=<value>  ID of the the Secret Group of the TLS Context specified in --tlsContextId
  --uri=<value>                      Upstream uri
  --username=<value>                 Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Edit an API instance upstream.
```

_See code: [src/commands/api-mgr/upstream/edit.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/upstream/edit.ts)_

## `@mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:list APIINSTANCEID`

Lists API instance upstreams

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin api-mgr:upstream:list [APIINSTANCEID] [--password <value> [--username <value> |
    --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment
    <value>] [--host <value>] [--collectMetrics] [-o <value>] [-h]

FLAGS
  -h, --help                    Show CLI help.
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER 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.
  --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.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Lists API instance upstreams
```

_See code: [src/commands/api-mgr/upstream/list.ts](https://github.com/mulesoft/anypoint-cli-api-mgr-plugin/blob/v0.4.0/src/commands/api-mgr/upstream/list.ts)_

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

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

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-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: ~/Library/Preferences/oclif-nodejs/config.json

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

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

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

Display help for @mulesoft/anypoint-cli-api-mgr-plugin.

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-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-api-mgr-plugin.
```

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

## `@mulesoft/anypoint-cli-api-mgr-plugin version`

```
USAGE
  $ @mulesoft/anypoint-cli-api-mgr-plugin version
```

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