Navigation

Alpha Release of MongoDB CLI

This is a pre-release early version of MongoDB CLI. Do not use MongoDB CLI to manage production environments.

mongocli ops-manager agents upgrade

On this page

The agents upgrade command upgrades the MongoDB Agents and BI Connector in the specified project to their latest version.

Syntax

mongocli ops-manager|om agents upgrade
     [ --profile|-P <profile-name> ]
     [ --projectId <id-of-project> ]

Options

Option Type Description Required?
--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 that contains the agents you want to update. If omitted, uses the project ID in the profile or environment variable. no

Output

The command prints the following fields in JSON 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 om agents upgrade command to upgrade the MongoDB Agents and the BI Connector to their latest version in the specified project. It uses the profile named myprofile for accessing Ops Manager.

mongocli om agents upgrade --projectId 5eac961b0838261259e0302d \
--profile myprofile

The previous command prints the following fields in JSON format to the terminal. To learn more about these fields, see Output.

{
        "automationAgentVersion": "10.15.0.6376-1",
        "biConnectorVersion": "2.13.4"
}