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

mongocli ops-manager versionManifest update

On this page

  • Syntax
  • Arguments
  • Options
  • Output
  • Example

The versionManifest update command downloads and updates the version manifest for the specified version from MongoDB. You can also update the version manifest through the Ops Manager UI or API.

mongocli ops-manager|om versionManifest|versionmanifest|version-manifest update <version>
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]

Note

Use -h or --help to view the command-line help for this command.

Argument
Type
Description
Required?
<version>
string

MongoDB version manifest to update. Valid values are:

  • 4.0

  • 4.2

  • 4.4

yes
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 accessing Ops Manager are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no

If the command succeeds, it returns the following message in the default format. If the command returns errors, see Troubleshooting for recommended solutions.

Version manifest updated.

If you request output in JSON format, the command returns the fields described in the API reference.

The following mongocli om versionManifest command upgrades the MongoDB instances to v4.4. The command uses the default profile to access the Ops Manager deployment.

mongocli om versionManifest update 4.4

The previous command returns the following:

Version manifest updated.
mongocli om versionManifest update 4.4 --output json

The previous command returns the following:

{
"updated": 1605642606044,
"versions": [
...
{
"name": "4.4.2-ent",
"builds": [
{
"architecture": "ppc64le",
"gitVersion": "15e73dc5738d2278b688f8929aee605fe4279b0e",
"platform": "linux",
"url": "/linux/mongodb-linux-ppc64le-enterprise-rhel71-4.4.2.tgz",
"maxOsVersion": "8.0",
"minOsVersion": "7.0",
"flavor": "rhel"
},
{
"architecture": "amd64",
"gitVersion": "15e73dc5738d2278b688f8929aee605fe4279b0e",
"platform": "linux",
"url": "/linux/mongodb-linux-x86_64-enterprise-ubuntu2004-4.4.2.tgz",
"maxOsVersion": "20.04",
"minOsVersion": "19.04",
"flavor": "ubuntu"
},
...
}
]
}

Back

Version Manifest