---
schema_version: "1"
id: a041bbb3282fa4d6386ecb1a516904503c4b7ac599357e2e515e9fd62cab25af
title: CLI for Local Server Groups
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-cli/3.x/server-groups.md
canonical_url: https://docs.mulesoft.com/anypoint-cli/3.x/server-groups
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 61c33a3ffa215834114ae14b7d8c8a74b50d9b33f7986923729e4ed3dd882d49
description: MuleSoft Documentation Site
release: 3.x
latest: false
---
---
product: Anypoint CLI
version: 3.x
---

# CLI for Local Server Groups

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

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="#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="#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="#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="#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="#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="#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="#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 create

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

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

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## runtime-mgr serverGroup describe

\> runtime-mgr serverGroup describe \[options\] <serverGroupId>

This command describes the server group passed in `serverGroupId`.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## runtime-mgr serverGroup modify

\> runtime-mgr serverGroup modify \[options\] <serverGroupId>

This command modifies the server group passed in `serverGroupId`.

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

Besides the `--name` option, this command also takes the default `--help`, `-f`/`--fields` and
`-o`/`--output` options.

## runtime-mgr serverGroup add server

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

This command adds the server passed in `serverId` to the server group passed in `serverGroupId`.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## runtime-mgr serverGroup delete

\> runtime-mgr serverGroup delete \[options\] <serverGroupId>

This command deletes the server groups passed in `serverGroupId`.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

> [!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 \[options\]

This command lists all server groups in the environment.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## runtime-mgr serverGroup remove server

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

This command removes the server passed in `serverId` from the server group passed in
`serverGroupId`.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.
