1- .. _mcli-atlas-onlinearchive-create-command:
1+ .. _mcli-atlas-cluster- onlinearchive-create-command:
22
3- ===================================
4- mongocli atlas onlinearchive create
5- ===================================
3+ ===========================================
4+ mongocli atlas cluster onlinearchive create
5+ ===========================================
66
77.. default-domain:: mongodb
88
@@ -18,14 +18,14 @@ The ``onlinearchive create`` command creates an :atlas:`online archive
1818</online-archive/manage-online-archive/>` for the specified collection in the ``M10`` or higher cluster. You can also create an online archive through the
1919|service| :atlas:`UI </online-archive/configure-online-archive/>` or :atlas:`API </reference/api/online-archive-create-one/>`.
2020
21- .. _mcli-atlas-online-archive-create-syntax:
21+ .. _mcli-atlas-cluster- online-archive-create-syntax:
2222
2323Syntax
2424------
2525
2626.. code-block:: text
2727
28- mongocli atlas onlinearchive create
28+ mongocli atlas cluster onlinearchive create
2929 --archiveAfter <number-of-days>
3030 --clusterName <cluster-name>
3131 --collection <collection-name>
3535 [ --profile|-P <profile-name> ]
3636 [ --projectId <project-ID> ]
3737
38- .. _mcli-atlas-onlinearchive-create-options:
38+ .. _mcli-atlas-cluster- onlinearchive-create-options:
3939
4040Options
4141-------
@@ -49,27 +49,27 @@ Options
4949 - Description
5050 - Required?
5151
52- * - ``archiveAfter``
52+ * - ``-- archiveAfter``
5353 - int
5454 - Number of days after which to archive cluster data.
5555 - yes
5656
57- * - ``clusterName``
57+ * - ``-- clusterName``
5858 - string
5959 - Name of the cluster.
6060 - yes
6161
62- * - ``collection``
62+ * - ``-- collection``
6363 - string
6464 - Name of the collection for which to create an online archive.
6565 - yes
6666
67- * - ``dateField``
67+ * - ``-- dateField``
6868 - string
6969 - Name of an already indexed date field from the documents.
7070 - yes
7171
72- * - ``db``
72+ * - ``-- db``
7373 - string
7474 - Name of the database that contains the collection.
7575 - yes
@@ -100,7 +100,7 @@ Options
100100 :ref:`environment variable <mcli-env-var>`.
101101 - no
102102
103- .. _mcli-atlas-onlinearchive-create-output:
103+ .. _mcli-atlas-cluster- onlinearchive-create-output:
104104
105105Output
106106------
@@ -109,7 +109,7 @@ Output
109109
110110.. include:: /includes/atlas-online-archive-output.rst
111111
112- .. _mcli-atlas-onlinearchive-create-egs:
112+ .. _mcli-atlas-cluster- onlinearchive-create-egs:
113113
114114Examples
115115--------
@@ -129,7 +129,7 @@ The following examples show two ways to create an online archive using the ``mon
129129
130130 The previous command prints the following fields in |json| format to the
131131 terminal. To learn more about these fields, see
132- :ref:`mcli-atlas-onlinearchive-create-output`.
132+ :ref:`mcli-atlas-cluster- onlinearchive-create-output`.
133133
134134 .. code-block:: sh
135135 :copyable: false
@@ -161,7 +161,7 @@ The following examples show two ways to create an online archive using the ``mon
161161
162162 The previous command prints the following fields in |json| format to the
163163 terminal. To learn more about these fields, see
164- :ref:`mcli-atlas-onlinearchive-create-output`.
164+ :ref:`mcli-atlas-cluster- onlinearchive-create-output`.
165165
166166 .. code-block:: sh
167167 :copyable: false
0 commit comments