.. _mongocli-cloud-manager-automation-watch:

=======================================
mongocli cloud-manager automation watch
=======================================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: singlecol

Watch for automation changes to be completed.

This command checks the automation "lastGoalVersionAchieved" periodically until it matches "goalVersion".
Once the expected status is reached, the command prints "Changes deployed successfully."
If you run the command in the terminal, it blocks the terminal session until the changes are completed.
You can interrupt the command's polling at any time with CTRL-C.

Syntax
------

.. code-block::
   :caption: Command Syntax

   mongocli cloud-manager automation watch [options]

.. Code end marker, please don't delete this comment

Options
-------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - -h, --help
     - 
     - false
     - help for watch
   * - --projectId
     - string
     - false
     - Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.

Inherited Options
-----------------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - -P, --profile
     - string
     - false
     - Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.

Examples
--------

.. code-block::
   :copyable: false

   mongocli ops-manager automation watch
