mongocli cloud-manager agents upgrade¶
The agents upgrade
command upgrades the MongoDB Agent s and BI
Connector in the specified project to their latest version.
Syntax¶
mongocli cloud-manager|cm agents upgrade [ --output|-o <output-format> ] [ --profile|-P <profile-name> ] [ --projectId <id-of-project> ]
Options¶
Option | Type | Description | Required? |
--output , -o | string | Command output format. Valid values are:
If omitted, the command returns output in the default format. | no |
--profile , -P | string | Name of the profile where the public and private
keys for the project are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
--projectId | string | Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable. | no |
Output¶
The command prints the following fields in the specified format to the terminal if the command succeeds. If the command returns errors, see Troubleshooting for recommended solutions.
Name | Type | Description |
---|---|---|
automationAgentVersion | string | Latest version of the MongoDB Agent. |
biConnectorVersion | string | Latest version of the BI Connector. |
Example¶
The following example uses the mongocli cm agents upgrade
command
to upgrade the MongoDB Agent s and the BI Connector to their latest
version in the specified project. It uses the profile named
myprofile
for accessing Cloud Manager.
mongocli cm agents upgrade --output json \ --projectId 5eac961b0838261259e0302d \ --profile myprofile
The previous command prints the following fields in the specified format to the terminal. To learn more about these fields, see Output.
{ "automationAgentVersion": "10.15.0.6376-1", "biConnectorVersion": "2.13.4" }