---
schema_version: "1"
id: 5b0fca147e9c3cab506f1ec54ed6a1fbe97af04d8c1b4fd06e0cabf289507bba
title: Runtime Manager Command-Line Interface
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/runtime-manager/runtime-manager-cli.md
canonical_url: https://docs.mulesoft.com/runtime-manager/runtime-manager-cli
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1eb45ac7fc17ace578dafe6a144db6eed38a086a5cf2d7876d7c74e637251b2f
description: MuleSoft Documentation Site
latest: true
---
---
product: Runtime Manager
keywords: runtime manager, servers, cli
---

# Runtime Manager Command-Line Interface

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

[![logo cloudhub 2.0 active](/mulesoft/current/en-us/_/img/icons/clouds.svg "CloudHub 2.0")CloudHub 2.0](deployment-strategies#cloudhub-2-0)[ ![logo cloudhub active](/mulesoft/current/en-us/_/img/icons/cloudhub.svg "CloudHub")CloudHub ](deployment-strategies#cloudhub)[ ![logo hybrid active](/mulesoft/current/en-us/_/img/icons/hybrid-cloud.svg "Hybrid")Hybrid ](deployment-strategies#hybrid-deployments)[ ![logo server active](/mulesoft/current/en-us/_/img/icons/server-cloud.svg "Anypoint Platform PCE")Private Cloud Edition ](deployment-strategies#anypoint-platform-private-cloud-edition)[ ![logo rtf active](/mulesoft/current/en-us/_/img/icons/cloud-gear.svg "Runtime Fabric")Runtime Fabric](deployment-strategies#anypoint-runtime-fabric-deployments)

Anypoint Platform provides a scripting and command-line tool for Runtime Manager. The command-line
interface (CLI) supports both the interactive shell and standard CLI modes and works with:

- [Locally Deployed Applications Managed by Runtime Manager](#standalone-apps)

- [Alerts for Locally Deployed Applications Managed by Runtime Manager](#standalone-alerts)

- [Local Servers](#servers)

- [Local Server Groups](#server-groups)

- [Local Cluster Servers](#server-clusters)

- [CLI for Cloudhub 2.0](#cloudhub-2)

- [CLI for CloudHub](#cloudhub)

- [CLI for Anypoint Runtime Fabric](#rtf)

## Locally Deployed Applications Managed by Runtime Manager

> [!CAUTION] For the Anypoint Platform CLI to recognize your target servers, each server must be
> manually registered with the platform.

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-artifact">runtime-mgr:standalone-application:artifact</a></p></div></div></td><td><div><div><p>Downloads a standalone application artifact binary</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-copy">runtime-mgr:standalone-application:copy</a></p></div></div></td><td><div><div><p>Copies a standalone application</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-delete">runtime-mgr:standalone-application:delete</a></p></div></div></td><td><div><div><p>Deletes a standalone application</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-deploy">runtime-mgr:standalone-application:deploy</a></p></div></div></td><td><div><div><p>Deploys or redeploys an application to an on-premises server, server group, or cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-describe">runtime.mgr:standalone-application:describe</a></p></div></div></td><td><div><div><p>Shows detailed information for a standalone application</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-list">runtime-mgr:standalone-application:list</a></p></div></div></td><td><div><div><p>Lists all standalone applications in the environment</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-modify">runtime-mgr:standalone-application:modify</a></p></div></div></td><td><div><div><p>Changes a standalone application artifact</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-restart">runtime-mgr:standalone-application:restart</a></p></div></div></td><td><div><div><p>Restarts a standalone application</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-start">runtime-mgr:standalone-application:start</a></p></div></div></td><td><div><div><p>Starts a standalone application</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-stop">runtime-mgr:standalone-application:stop</a></p></div></div></td><td><div><div><p>Stops a standalone application</p></div></div></td></tr></tbody></table>

### runtime-mgr:standalone-application:artifact

\> runtime-mgr:standalone-application:artifact \[flags\] <identifier> <directory>

Downloads the application artifact of the `identifier` application, to the directory passed in
`directory`. The `identifier` flag can be either an application ID or name.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-application:copy

\> runtime-mgr:standalone-application:copy \[flags\] <source> <target> <targetIdentifier>

Copies the standalone (on-premises) application passed in `source` to the target passed in `target`
and the server, server group or cluster ID or Name passed in `targetIdentifier`.

Both arguments `source` and `destination` are represented using the format:
`<organizationName>:<environmentName>/<appName>`, for example:

\> runtime-mgr:standalone-application:copy Services:QA/application-1 Development:QA/application-2
123456

Copies the application named `application-1` from the QA environment of the _Services_ organization
to the QA environment of the `_Development_` organization in the server ID 123456.

If the Anypoint Platform CLI is using the QA environment in the Services organization, the command
can simply take the application name as a `source`:

\> runtime-mgr:standalone-application:copy application-1 Development/QA/application-2 123456

> [!NOTE] Running this command requires for your user to have read/write access to the `/tmp`
> directory of the OS where the CLI is installed.

> [!WARNING] It isn’t possible to copy applications that have the same name but different targets
> within the same organization and environment. This can only be done through the UI.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-application:delete

\> runtime-mgr:standalone-application:delete \[flags\] <identifier>

Deletes the standalone (on-premises) application passed in `identifier`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

> [!WARNING] This command does not prompt twice before deleting. If you send a delete instruction,
> it does not ask for confirmation.

### runtime-mgr:standalone-application:deploy

\> runtime-mgr:standalone-application:deploy \[flags\] <targetIdentifier> <name> <zipfile>

Deploys or redeploys the application passed as a ZIP file in the path `zipfile` to the on-premises
target passed in `targetIdentifier`.

The `targetIdentifier` flag can be either a target ID or name.

A target can be either a server, server group, or cluster.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

To redeploy an app and set a logging level or turn on Insight event tracking, see
[runtime-mgr:standalone-application:modify](#runtime-mgr-standalone-application-modify).

### runtime-mgr:standalone-application:describe

\> runtime-mgr:standalone-application:describe \[flags\] <identifier>

Shows detailed information, such as status, creation date, and last update, for the standalone
(on-premises) application passed in `identifier`.

Use the flag `-o json` to get the raw JSON response of the application you specify in `<name>`.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-application:list

\> runtime-mgr:standalone-application:list \[flags\]

Lists all standalone (on-premises) applications.

In addition to the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options), this command accepts the following flags:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--limit</code></p></div></div></td><td><div><div><p>Specifies the number of results to retrieve</p></div></div></td><td><div><div><p><code>--limit 50</code></p></div></div></td></tr><tr><td><div><div><p><code>--offset</code></p></div></div></td><td><div><div><p>Offsets the number of applications passed</p></div></div></td><td><div><div><p><code>--offset 20</code></p></div></div></td></tr><tr><td><div><div><p><code>--output</code></p></div></div></td><td><div><div><p>Specifies the response format.</p></div></div></td><td><div><div><p><code>--output json</code></p></div></div></td></tr></tbody></table>

### runtime-mgr:standalone-application:modify

\> runtime-mgr:standalone-application:modify \[flags\] <identifier> <zipfile>

Modifies the standalone (on-premises) application passed in `identifier` with the ZIP file
application passed in `zipfile` as a path.

The `identifier` option specifies the application identifier. To retrieve the identifier, see
[runtime-mgr:standalone-application:list](#runtime-mgr-standalone-application-list).

In addition to the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options), this command accepts the following flags:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--insight</code></p></div></div></td><td><div><div><p>Stores message metadata of every Mule transaction.</p></div></div></td><td><div><div><p><code>--insight</code></p></div></div></td></tr><tr><td><div><div><p><code>--log [level:scope]</code></p></div></div></td><td><div><div><p>Sets the logging level and scope pair:</p></div><div><ul><li><p><code>level</code>: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF</p></li><li><p><code>scope</code>: package name of the class, connector, or module to log, such as <code>org.mule.extension.ftp</code> for Anypoint Connector for FTP</p></li></ul></div><div><p>To set multiple logging levels, provide multiple <code>--log</code> flags.</p></div></div></td><td><div><div><p><code>--log INFO:org.apache --log WARN:org.mule</code></p></div></div></td></tr></tbody></table>

### runtime-mgr:standalone-application:restart

\> runtime-mgr:standalone-application:restart \[flags\] <identifier>

Restarts the standalone (on-premises) application passed in `identifier`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-application:start

\> runtime-mgr:standalone-application:start \[flags\] <identifier>

Starts the standalone (on-premises) application passed in `identifier`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-application:stop

\> runtime-mgr:standalone-application:stop \[flags\] <identifier>

Stops the standalone (on-premises) application passed in `identifier`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

## Alerts for Locally Deployed Applications Managed by Runtime Manager

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-alerts#runtime-mgr-standalone-alert-create">runtime-mgr:standalone-alert:create</a></p></div></div></td><td><div><div><p>Creates new alert for standalone runtime</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-alerts#runtime-mgr-standalone-alert-describe">runtime-mgr:standalone-alert:describe</a></p></div></div></td><td><div><div><p>Describes an alert</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-alerts#runtime-mgr-standalone-alert-list">runtime-mgr:standalone-alert:list</a></p></div></div></td><td><div><div><p>Lists all alerts for standalone runtimes in the environment</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/standalone-alerts#runtime-mgr-standalone-alert-modify">runtime-mgr:standalone-alert:modify</a></p></div></div></td><td><div><div><p>Modifies alert for standalone runtime</p></div></div></td></tr></tbody></table>

### runtime-mgr:standalone-alert:create

\> runtime-mgr:standalone-alert:create <name> \[flags\]

Creates a new alert for a standalone runtime with the ID passed in `name`. The alert `name` is
limited to 256 characters.

In addition to the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options), this command accepts the following flags:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><p><code>--condition</code></p></td><td><p>Alert trigger condition</p></td><td><p><code>--condition cluster-up</code></p></td></tr><tr><td><p><code>--content &lt;string&gt;</code></p></td><td><p>Alert notification email body</p></td><td><p><code>--content Email Body</code></p></td></tr><tr><td><p><code>--email</code></p></td><td><p>Email address to send alert notification to<br>Can be used multiple times to specify up to 20 email addresses</p></td><td><p><code>--email <a href="mailto:user@mulesoft.com">user@mulesoft.com</a></code></p></td></tr><tr><td><p><code>--operator</code></p></td><td><p>Condition operator explaining values relation to threshold.</p></td><td><p><code>--operator gt</code></p></td></tr><tr><td><p><code>--period</code></p></td><td><p>Condition duration in minutes</p></td><td><p><code>--period 15</code></p></td></tr><tr><td><p><code>--recipient</code></p></td><td><p>Username to send alert notification to<br>Can be used multiple times to specify up to 20 platform user IDs</p></td><td><p><code>--recipient 1fec0a49-1551-4199-bfcc-cf0352d0f29d</code></p></td></tr><tr><td><p><code>--resource</code></p></td><td><p>Alert resource ID. If not provided alert triggers for all resources. Depending on <code>resourceType</code>, the resource id can be of an application, server, server-group or cluster.</p></td><td><p><code>--resource 12343</code></p></td></tr><tr><td><p><code>--resourceType</code></p></td><td><p>Alert resource type</p></td><td><p><code>--resourceType server</code></p></td></tr><tr><td><p><code>--severity</code></p></td><td><p>Alert severity</p></td><td><p><code>--severity 3</code></p></td></tr><tr><td><p><code>--subject &lt;string&gt;</code></p></td><td><p>Alert notification email subject</p></td><td><p><code>--subject Email Subject</code></p></td></tr><tr><td><p><code>--threshold</code></p></td><td><p>Condition threshold number</p></td><td><p><code>--threshold 10</code></p></td></tr></tbody></table>

> [!NOTE] This command has multi-option flags. When using multi-option flags in a command, either
> put the parameter before the flags or use a \`-- \` (two dashes followed by a space) before the
> parameter.

### runtime-mgr:standalone-alert:describe

\> runtime-mgr:standalone-alert:describe \[flags\] <alertId>

Describes the alert passed in `alertId`.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-alert:list

\> runtime-mgr:standalone-alert:list \[flags\]

Lists all alerts for standalone Mules in the current environment.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:standalone-alert:modify

\> runtime-mgr:standalone-alert:modify <alertId> \[flags\]

Modifies the alert passed in `alertId`.

In addition to the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options), this command accepts the following flags:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><p><code>--condition</code></p></td><td><p>Alert trigger condition</p></td><td><p><code>--condition server-load-average</code></p></td></tr><tr><td><p><code>--content &lt;string&gt;</code></p></td><td><p>Alert notification email body</p></td><td><p><code>--content Email Body</code></p></td></tr><tr><td><p><code>--email</code></p></td><td><p>Email address to send alert notification to<br>Can be used multiple times to specify up to 20 email addresses</p></td><td><p><code>--email <a href="mailto:user@mulesoft.com">user@mulesoft.com</a></code></p></td></tr><tr><td><p><code>--name</code></p></td><td><p>Alert name</p></td><td><p><code>--name testAlert</code></p></td></tr><tr><td><p><code>--operator</code></p></td><td><p>Condition operator explaining values relation to threshold.</p></td><td><p><code>--operator lt-</code></p></td></tr><tr><td><p><code>--period</code></p></td><td><p>Condition duration in minutes</p></td><td><p><code>--period 15</code></p></td></tr><tr><td><p><code>--recipient</code></p></td><td><p>Username to send alert notification to<br>Can be used multiple times to specify up to 20 platform user IDs</p></td><td><p><code>--recipient 1fec0a49-1551-4199-bfcc-cf0352d0f29d</code></p></td></tr><tr><td><p><code>--resource</code></p></td><td><p>Alert resource ID. If not provided alert triggers for all resources. Depending on <code>resourceType</code>, the resource id can be of an application, server, server-group or cluster.</p></td><td><p><code>--resource 12343</code></p></td></tr><tr><td><p><code>--resourceType</code></p></td><td><p>Alert resource type</p></td><td><p><code>--resourceType server</code></p></td></tr><tr><td><p><code>--severity</code></p></td><td><p>Alert severity</p></td><td><p><code>--severity 3</code></p></td></tr><tr><td><p><code>--subject &lt;string&gt;</code></p></td><td><p>Alert notification email subject</p></td><td><p><code>--subject Email Subject</code></p></td></tr><tr><td><p><code>--threshold</code></p></td><td><p>Condition threshold number</p></td><td><p><code>--threshold 10</code></p></td></tr></tbody></table>

> [!NOTE] This command has multi-option flags. When using multi-option flags in a command, either
> put the parameter before the flags or use a \`-- \` (two dashes followed by a space) before the
> parameter.

## Local Servers

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/servers#runtime-mgr-server-describe">runtime-mgr:server:describe</a></p></div></div></td><td><div><div><p>Describes server</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/servers#runtime-mgr-server-delete">runtime-mgr:server:delete</a></p></div></div></td><td><div><div><p>Deletes server</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/servers#runtime-mgr-server-list">runtime-mgr:server:list</a></p></div></div></td><td><div><div><p>Changes an standalone application artifact</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/servers#runtime-mgr-server-modify">runtime-mgr:server:modify</a></p></div></div></td><td><div><div><p>Modifies server</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/servers#runtime-mgr-server-token">runtime-mgr:server:token</a></p></div></div></td><td><div><div><p>Gets server registration token. This token needs to be used to register a new server</p></div></div></td></tr></tbody></table>

### runtime-mgr:server:describe

\> runtime-mgr:server:describe \[flags\] <serverId>

Describes the server passed in `serverId`.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:server:delete

\> runtime-mgr:server:delete \[flags\] <serverId>

Deletes the server passed in `serverId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

> [!WARNING] This command does not prompt twice before deleting. If you send a delete instruction,
> it does not ask for confirmation.

### runtime-mgr:server:list

\> runtime-mgr:server:list \[flags\]

Lists all servers in your environment.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:server:modify

\> runtime-mgr:server:modify \[flags\] <serverId>

Modifies the server passed in `serverId`.

In order to update the id for the cluster, you need to pass the `--name` flag.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:server:token

\> runtime-mgr:server:token \[flags\]

Gets server registration token. This token needs to be used to register a new server.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

## Local Server Groups

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-add-server">runtime-mgr:serverGroup:add:server</a></p></div></div></td><td><div><div><p>Adds server to a server group</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-create">runtime-mgr:serverGroup:create</a></p></div></div></td><td><div><div><p>Creates server group from servers</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-describe">runtime-mgr:serverGroup:describe</a></p></div></div></td><td><div><div><p>Describes server group</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-delete">runtime-mgr:serverGroup:delete</a></p></div></div></td><td><div><div><p>Deletes server group</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-list">runtime-mgr:serverGroup:list</a></p></div></div></td><td><div><div><p>Lists all server groups in the environment</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-modify">runtime-mgr:serverGroup:modify</a></p></div></div></td><td><div><div><p>Modifies server group</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-groups#runtime-mgr-servergroup-remove-server">runtime-mgr:serverGroup:remove:server</a></p></div></div></td><td><div><div><p>Removes server from a server group</p></div></div></td></tr></tbody></table>

### runtime-mgr:serverGroup:add:server

\> runtime-mgr:serverGroup:add:server \[flags\] <serverGroupId> <serverId>

Adds the server passed in `serverId` to the server group passed in `serverGroupId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:serverGroup:create

\> runtime-mgr:serverGroup:create \[flags\] <name> \[serverIds...\]

Creates a server group with the name passed in `name` using the server Id(s) passed as argument(s)
thereafter.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:serverGroup:describe

\> runtime-mgr:serverGroup:describe \[flags\] <serverGroupId>

Describes the server group passed in `serverGroupId`.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:serverGroup:delete

\> runtime-mgr:serverGroup:delete \[flags\] <serverGroupId>

Deletes the server groups passed in `serverGroupId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

> [!WARNING] This command does not prompt twice before deleting. If you send a delete instruction,
> it does not ask for confirmation.

### runtime-mgr:serverGroup:list

\> runtime-mgr:serverGroup:list \[flags\]

Lists all server groups in the environment.

This command has the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:serverGroup:modify

\> runtime-mgr:serverGroup:modify \[flags\] <serverGroupId>

Modifies the server group passed in `serverGroupId`.

In order to update the id for the cluster, you need to pass the `--name` flag.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:serverGroup:remove:server

\> runtime-mgr:serverGroup:remove:server \[flags\] <serverGroupId> <serverId>

Removes the server passed in `serverId` from the server group passed in `serverGroupId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

## Local Cluster Servers

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-add-server">runtime-mgr:cluster:add:server</a></p></div></div></td><td><div><div><p>Adds server to cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-create">runtime-mgr:cluster:create</a></p></div></div></td><td><div><div><p>Creates new cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-describe">runtime-mgr:cluster:describe</a></p></div></div></td><td><div><div><p>Describes server cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-delete">runtime-mgr:cluster:delete</a></p></div></div></td><td><div><div><p>Deletes cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-modify">runtime-mgr:cluster:modify</a></p></div></div></td><td><div><div><p>Modifies cluster</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-list">runtime-mgr:cluster:list</a></p></div></div></td><td><div><div><p>Lists all clusters in the environment</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/anypoint-cli/latest/server-clusters#runtime-mgr-cluster-remove-server">runtime-mgr:cluster:remove:server</a></p></div></div></td><td><div><div><p>Removes server from a cluster</p></div></div></td></tr></tbody></table>

### runtime-mgr:cluster:add:server

\> runtime-mgr:cluster:add:server \[flags\] <clusterId> <serverId>

Adds the cluster in `clusterId` to the server passed in `serverId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:cluster:create

\> runtime-mgr:cluster:create <name> \[flags\]

This command creates a cluster using the id passed in `name`.

In addition to the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options), this command accepts the following flags:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--multicast</code></p></div></div></td><td><div><div><p>Whether cluster should be multicast</p></div></div></td><td><div><div><p><code>--multicast</code></p></div></div></td></tr><tr><td><div><div><p><code>--server</code></p></div></div></td><td><div><div><p>Pair of server ID and IP address<br>IP address is optional for multicast cluster<br>Provide multiple values to add multiple servers</p></div></div></td><td><div><div><p><code>--server 903083:192.168.0.1</code></p></div></div></td></tr></tbody></table>

> [!NOTE] This command has multi-option flags. When using multi-option flags in a command, either
> put the parameter before the flags or use a \`-- \` (two dashes followed by a space) before the
> parameter.

### runtime-mgr:cluster:describe

\> runtime-mgr:cluster:describe \[flags\] <clusterId>

Describes the cluster passed in `clusterId`.

This command accepts the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:cluster:delete

\> runtime-mgr:cluster:delete \[flags\] <clusterId>

Deletes the cluster passed in `clusterId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

> [!WARNING] This command does not prompt twice before deleting. If you send a delete instruction,
> it does not ask for confirmation.

### runtime-mgr:cluster:list

\> runtime-mgr:cluster:list \[flags\]

Lists all clusters in the environment.

This command has the `--output` flag. Use the `--output` flag to specify the response format.
Supported values are `table` (default) and `json`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:cluster:modify

\> runtime-mgr:cluster:modify \[flags\] <clusterId>

Modifies the cluster passed in `clusterId`.  
In order to update the id for the cluster, you need to pass the `--name` flag.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

### runtime-mgr:cluster:remove:server

\> runtime-mgr:cluster:remove:server \[flags\] <clusterId> <serverId>

Removes the server passed in `serverId` from the cluster passed in `clusterId`.

This command accepts the [default flags](https://docs.mulesoft.com/runtime-manager/#default-options).

## CLI for Cloudhub 2.0

You can use CLI commands for deploying and managing applications in Cloudhub 2.0.

- [Deploying Apps with Anypoint CLI](https://docs.mulesoft.com/anypoint-cli/latest/cloudhub2-apps)

## CLI for CloudHub

Anypoint CLI supports managing these CloudHub features:

- [CloudHub Applications](https://docs.mulesoft.com/anypoint-cli/latest/cloudhub-apps)

- [CloudHub Dedicated Load Balancers](https://docs.mulesoft.com/anypoint-cli/latest/cloudhub-dlb)

- [Anypoint Virtual Private Cloud](https://docs.mulesoft.com/anypoint-cli/latest/cloudhub-vpc)

## CLI for Anypoint Runtime Fabric

Anypoint CLI supports managing these Runtime Fabric features:

- [Runtime Fabric App Management](https://docs.mulesoft.com/anypoint-cli/3.x/runtime-fabric-apps)

- [Runtime Fabric Instances](https://docs.mulesoft.com/anypoint-cli/3.x/rtf-instances)

## See Also

- [Anypoint Platform CLI 4.x Overview](https://docs.mulesoft.com/anypoint-cli/latest/)
