mongocli ops-manager versionManifest update
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.
Syntax
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.
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<version> | string | MongoDB version manifest to update. Valid values are:
| yes |
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 accessing Ops Manager are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
Output
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.
Example
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" }, ... } ] }