mongocli ops-manager automation watch

The automation watch command monitors the specified Ops Manager project's automation configuration status until it reaches a goal state, at which time it displays a confirmation message.

mongocli ops-manager|om automation watch
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]
[ --projectId projectId ]

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

--output, -o

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 the Go template file

If omitted, the command returns output in the default format.

--profile, -P
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.

Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable.


The automation watch command continuously polls an Ops Manager project's automation configuration status until it reaches a goal state. While the command is polling, it periodically prints dots (.) to the terminal.

When the automation configuration reaches a goal state, or if it is already in an stable state, the command prints a confirmation message.

If the command prints an error, see Troubleshooting for recommended solutions.

The following mongocli ops-manager automation watch command monitors the Ops Manager project associated with the default profile.

mongocli ops-manager automation watch

In this example project, the Ops Manager replica set is restarted just before running the command. The command prints dots while the replica set is restarting, then prints a status message:

Changes deployed successfully
Give Feedback