Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/ / /

mongocli ops-manager agents upgrade

On this page

  • Syntax
  • Options
  • Output
  • Example

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

mongocli ops-manager|om agents upgrade
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]
[ --projectId <id-of-project> ]
Option
Type
Description
Required?
--output, -o
string

Command output format. Valid values are:

  • json for output in JSON format

  • go-template for custom output using the Go template

  • go-template-file for custom output specified using Go template file

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

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.

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 --output json

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"
}

Back

List Agents of a Specified Type