Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas clusters upgrade

Upgrade a shared cluster's tier, disk size, and/or MongoDB version.

Public Preview: The atlas api sub-command, automatically generated from the MongoDB Atlas Admin API, offers full coverage of the Admin API and is currently in Public Preview (please provide feedback at https://feedback.mongodb.com/forums/930808-atlas-cli). Admin API capabilities have their own release lifecycle, which you can check via the provided API endpoint documentation link.

This command is unavailable for dedicated clusters.

To use this command, you must authenticate with a user account or an API key with the Project Cluster Manager role.

Command Syntax
atlas clusters upgrade [clusterName] [options]
Name
Type
Required
Description

clusterName

string

false

Name of the cluster to upgrade.

Name
Type
Required
Description

--disableTerminationProtection

false

Disables termination protection for your cluster. You can delete a cluster with termination protection disabled.

Mutually exclusive with --enableTerminationProtection, --file.

--diskSizeGB

float

false

Capacity, in gigabytes, of the host's root volume.

Mutually exclusive with --file.

--enableTerminationProtection

false

Enables termination protection for your cluster. You can't delete a cluster with termination protection enabled.

Mutually exclusive with --disableTerminationProtection, --file.

-f, --file

string

false

Path to an optional JSON configuration file that defines cluster settings. Note: Unsupported fields in the JSON file are ignored. To learn more about cluster configuration files for the Atlas CLI, see https://dochub.mongodb.org/core/cluster-config-file-atlascli.

Mutually exclusive with --tier, --diskSizeGB, --mdbVersion, --enableTerminationProtection, --disableTerminationProtection, --tag.

-h, --help

false

help for upgrade

--mdbVersion

string

false

Major MongoDB version of the cluster.

Mutually exclusive with --file.

-o, --output

string

false

Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.

--projectId

string

false

Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.

--tag

key=value

false

List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. Passing this flag replaces preexisting data.

Mutually exclusive with --file.

--tier

string

false

Tier for each data-bearing server in the cluster. To learn more about cluster tiers, see https://dochub.mongodb.org/core/cluster-tier-atlas.

Mutually exclusive with --file.

Name
Type
Required
Description

-P, --profile

string

false

Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.

If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.

Upgrading cluster '<Name>'.
# Upgrade the tier, disk size, and MongoDB version for the shared cluster named myCluster in the project with the ID 5e2211c17a3e5a48f5497de3:
atlas cluster upgrade myCluster --projectId 5e2211c17a3e5a48f5497de3 --tier M50 --diskSizeGB 20 --mdbVersion 7.0 --tag env=dev

Back

update

On this page