Skip to content

Commit 9ecbb1d

Browse files
Create a default profile source constant
1 parent 0b6ec22 commit 9ecbb1d

File tree

116 files changed

+219
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+219
-209
lines changed

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
pygments_style = 'sphinx'
5858

5959
source_constants = {
60+
'default-profile': ':ref:`default profile <mcli-config-file>`',
6061
'version': version,
6162
'mcli': 'MongoDB CLI',
6263
'mcli-long': 'MongoDB Command Line Interface (``mongocli``)',

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name = "mongocli"
22

33
[constants]
4+
default-profile = ":ref:`default profile <mcli-config-file>`"
45
mcli = "MongoDB CLI"
56
mcli-long = "MongoDB Command Line Interface (``mongocli``)"
67
mcli-version = "0.5.0"

source/includes/alert-describe-options.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- string
1717
- Name of the profile where the public and private
1818
keys for the project are saved. If omitted, uses the
19-
``default`` profile. To learn more about creating a
19+
{+default-profile+}. To learn more about creating a
2020
profile, see :ref:`mcli-configure`.
2121
- no
2222

@@ -25,4 +25,4 @@
2525
- Unique identifier of the project that contains the
2626
alert to describe. If omitted, uses the project ID in
2727
the profile or :ref:`environment variable <mcli-env-var>`.
28-
- yes
28+
- yes

source/includes/alert-list-options.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- string
2323
- Name of the profile where the public and private
2424
keys for the project are saved. If omitted, uses the
25-
``default`` profile. To learn more about creating a
25+
{+default-profile+}. To learn more about creating a
2626
profile, see :ref:`mcli-configure`.
2727
- no
2828

@@ -53,4 +53,4 @@
5353
* - ``CLOSED``
5454
- Alert is closed.
5555

56-
- no
56+
- no

source/includes/alerts-ack-options.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737

3838
* - ``--profile``, ``-P``
3939
- string
40-
- Name of the profile where the project ID and the |svc-api-key|\s
41-
for the project are saved. If omitted, uses the ``default``
42-
profile.
43-
40+
- Name of the profile where the project ID and the |svc-api-key|\s
41+
for the project are saved. If omitted, uses the
42+
{+default-profile+}.
43+
4444
.. seealso::
4545

4646
To learn more about creating a profile, see

source/includes/backup-checkpoints-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* - ``--profile``, ``-P``
1616
- string
1717
- Name of the profile where the project ID and the |svc-api-key|\s
18-
for the project are saved. If omitted, uses the ``default`` profile.
18+
for the project are saved. If omitted, uses the {+default-profile+}.
1919
To learn more about creating a profile, see :ref:`mcli-configure`.
2020
- no
2121

source/includes/basic-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- string
1717
- Name of the profile where the public and private
1818
keys for the project are saved. If omitted, uses the
19-
``default`` profile. To learn more about creating a
19+
{+default-profile+}. To learn more about creating a
2020
profile, see :ref:`mcli-configure`.
2121
- no
2222

source/includes/list-table-events-list-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* - ``--profile``, ``-P``
1111
- string
1212
- Name of the profile where the project ID and the |svc-api-key|\s
13-
for the project are saved. If omitted, uses the ``default`` profile.
13+
for the project are saved. If omitted, uses the {+default-profile+}.
1414
To learn more about creating a profile, see :ref:`mcli-configure`.
1515
- no
1616

source/includes/measurements-disks-describe-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
* - ``--profile``, ``-P``
108108
- string
109109
- Name of the profile where the project ID and the |svc-api-key|\s
110-
for the project are saved. If omitted, uses the ``default`` profile.
110+
for the project are saved. If omitted, uses the {+default-profile+}.
111111
To learn more about creating a profile, see :ref:`mcli-configure`.
112112
- no
113113

source/includes/mms-backup-restore-start-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
* - ``--profile``, ``-P``
8484
- string
8585
- Name of the profile where the project ID and the |svc-api-key|\s
86-
for the project are saved. If omitted, uses the ``default`` profile.
86+
for the project are saved. If omitted, uses the {+default-profile+}.
8787
To learn more about creating a profile, see :ref:`mcli-configure`.
8888
- no
8989

source/includes/quick-start-intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ You can configure {+mcli+} access to your MongoDB service using
22
the :ref:`mcli-config-command` and :ref:`mcli-config-set-command`
33
commands. In the following steps, the commands:
44

5-
- Create the ``default`` profile in the
5+
- Create the {+default-profile+} in the
66
:ref:`configuration file <mcli-config-file>`.
77
- Set your programmatic |api| access keys and project ID in the
88
profile.

source/includes/steps-configure-mcli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ content: |
9696
cat ~/.config/mongocli.toml
9797
9898
The command returns the contents of the configuration file,
99-
which contains the ``default`` profile. The ``default``
99+
which contains the {+default-profile+}. The ``default``
100100
profile has a |svc-api-key| and project ID for an {{service}}
101101
deployment.
102102

source/reference/atlas/alerts-configs-create.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Examples
289289

290290
The following example uses the ``mongocli atlas alerts configs create``
291291
command to create one alert configuration the specified
292-
project. It uses the default profile to access the
292+
project. It uses the {+default-profile+} to access the
293293
|service| project.
294294

295295
.. code-block:: text

source/reference/atlas/alerts-configs-delete.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Options
6464
- string
6565
- Name of the profile where the public and private
6666
keys for the project are saved. If omitted, uses the
67-
``default`` profile. To learn more about creating a
67+
{+default-profile+}. To learn more about creating a
6868
profile, see :ref:`mcli-configure`.
6969
- no
7070

@@ -109,7 +109,7 @@ Basic Example
109109

110110
The following ``alerts configs delete`` command deletes
111111
an alert configuration with the ID ``5ec4518ce4a7ba70e03dbf13`` after
112-
prompting for a confirmation. The command uses the default profile.
112+
prompting for a confirmation. The command uses the {+default-profile+}.
113113

114114
.. code-block:: text
115115
:copyable: false
@@ -129,7 +129,7 @@ Force Example
129129

130130
The following ``alerts configs delete`` command deletes
131131
an alert configuration with the ID ``5ec4518ce4a7ba70e03dbf13`` without
132-
requiring confirmation. The command uses the default profile.
132+
requiring confirmation. The command uses the {+default-profile+}.
133133

134134
.. code-block:: text
135135
:copyable: false

source/reference/atlas/alerts-configs-update.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Examples
294294

295295
The following example uses the ``mongocli atlas alerts configs update``
296296
command to update one alert configuration the specified
297-
project. It uses the default profile to access the
297+
project. It uses the {+default-profile+} to access the
298298
|service| project.
299299

300300
.. code-block:: text

source/reference/atlas/alerts-describe.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Example
5252

5353
The following example uses the ``mongocli atlas describe`` command
5454
to describe one alert that occurred for the specified project. It uses
55-
the default profile to access |service|.
55+
the {+default-profile+} to access |service|.
5656

5757
.. code-block:: text
5858

source/reference/atlas/backup-checkpoints-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Options
5252
* - ``--profile``, ``-P``
5353
- string
5454
- Name of the profile where the project ID and the |svc-api-key|\s
55-
for the project are saved. If omitted, uses the ``default`` profile.
55+
for the project are saved. If omitted, uses the {+default-profile+}.
5656
To learn more about creating a profile, see :ref:`mcli-configure`.
5757
- no
5858

@@ -81,7 +81,7 @@ Example
8181

8282
The following example uses the ``mongocli atlas backup checkpoints
8383
list`` command to retrieve the list of snapshots for the cluster named
84-
``myDemo``. The command uses the default profile where the project ID and the |svc-api-key|\s are stored.
84+
``myDemo``. The command uses the {+default-profile+} where the project ID and the |svc-api-key|\s are stored.
8585

8686
.. code-block:: json
8787

source/reference/atlas/backup-restore-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Options
6262
* - ``--profile``, ``-P``
6363
- string
6464
- Name of the profile where the project ID and the |svc-api-key|\s
65-
for the project are saved. If omitted, uses the ``default`` profile.
65+
for the project are saved. If omitted, uses the {+default-profile+}.
6666
To learn more about creating a profile, see :ref:`mcli-configure`.
6767
- no
6868

@@ -135,7 +135,7 @@ Automated Restore Example
135135

136136
The following example uses the ``mongocli atlas backup restore list``
137137
command to retrieve the Coninuous Backup restore jobs for the cluster
138-
``Cluster0``. The command uses the default profile.
138+
``Cluster0``. The command uses the {+default-profile+}.
139139

140140
.. code-block:: json
141141

source/reference/atlas/backup-restore-start.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Options
137137
* - ``--profile``, ``-P``
138138
- string
139139
- Name of the profile where the project ID and the |svc-api-key|\s
140-
for the project are saved. If omitted, uses the ``default`` profile.
140+
for the project are saved. If omitted, uses the {+default-profile+}.
141141
To learn more about creating a profile, see :ref:`mcli-configure`.
142142
- no
143143

@@ -205,7 +205,7 @@ Automated Restore Example
205205
The following example uses the ``mongocli atlas backup restore start
206206
AUTOMATED_RESTORE`` command to restore a deployment, which is specified using
207207
the ``targetProjectId`` and ``targetClusterId`` fields. The command uses the
208-
default profile where the project ID and the |svc-api-key|\s
208+
{+default-profile+} where the project ID and the |svc-api-key|\s
209209
for the source cluster are stored.
210210

211211
.. code-block:: json

source/reference/atlas/backup-snapshots-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Options
5555
* - ``--profile``, ``-P``
5656
- string
5757
- Name of the profile where the project ID and the |svc-api-key|\s
58-
for the project are saved. If omitted, uses the ``default`` profile.
58+
for the project are saved. If omitted, uses the {+default-profile+}.
5959
To learn more about creating a profile, see :ref:`mcli-configure`.
6060
- no
6161

@@ -84,7 +84,7 @@ Example
8484

8585
The following example uses the ``mongocli atlas backup snapshots list`` command
8686
to retrieve the list of snapshots for the cluster named ``myDemo``. The
87-
command uses the default profile, where the project ID and the
87+
command uses the {+default-profile+}, where the project ID and the
8888
|svc-api-key|\s are stored.
8989

9090
.. code-block:: json

source/reference/atlas/cluster-create.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ Options
147147

148148
* - ``--profile``, ``-P``
149149
- string
150-
- Name of the profile where the public and private
151-
keys for the project are set. If omitted, uses the
152-
``default`` profile. To learn more about creating a
150+
- Name of the profile where the public and private
151+
keys for the project are set. If omitted, uses the
152+
{+default-profile+}. To learn more about creating a
153153
profile, see :ref:`mcli-configure`.
154154
- no
155155

source/reference/atlas/cluster-delete.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Example 2
129129

130130
The following ``mongocli atlas cluster delete`` command deletes
131131
a cluster named ``myCluster`` without requiring confirmation.
132-
It uses the ``default`` profile for accessing the |service|
132+
It uses the {+default-profile+} for accessing the |service|
133133
project.
134134

135135
.. code-block:: text

source/reference/atlas/cluster-describe.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Options
5555
- string
5656
- Name of the profile where the public and private
5757
keys for the project are set. If omitted, uses the
58-
``default`` profile. To learn more about creating a
58+
{+default-profile+}. To learn more about creating a
5959
profile, see :ref:`mcli-configure`.
6060
- no
6161

@@ -84,7 +84,7 @@ Examples
8484

8585
The following example uses the ``mongocli atlas cluster describe``
8686
command to retrieve details about a cluster named ``myCluster``.
87-
It uses the ``default`` profile to access the |service| project
87+
It uses the {+default-profile+} to access the |service| project
8888
that contains the cluster.
8989

9090
.. code-block:: text

source/reference/atlas/cluster-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Options
5050
- string
5151
- Name of the profile where the public and private
5252
keys for the project are saved. If omitted, uses the
53-
``default`` profile. To learn more about creating a
53+
{+default-profile+}. To learn more about creating a
5454
profile, see :ref:`mcli-configure`.
5555
- no
5656

@@ -80,7 +80,7 @@ Examples
8080

8181
The following example uses the ``mongocli atlas cluster list`` command
8282
to retrieve the list of clusters in the specified project. It
83-
uses the ``default`` profile to access the project.
83+
uses the {+default-profile+} to access the project.
8484

8585
.. code-block:: text
8686
:copyable: false

source/reference/atlas/cluster-pause.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Options
5454
- string
5555
- Name of the profile where the public and private
5656
keys for the project are set. If omitted, uses the
57-
``default`` profile. To learn more about creating a
57+
{+default-profile+}. To learn more about creating a
5858
profile, see :ref:`mcli-configure`.
5959
- no
6060

@@ -80,7 +80,7 @@ Example
8080
-------
8181

8282
The following ``mongocli atlas cluster pause`` command pauses a sample
83-
cluster named ``myCluster``. The command uses the default profile.
83+
cluster named ``myCluster``. The command uses the {+default-profile+}.
8484

8585
.. code-block:: text
8686
:copyable: false

source/reference/atlas/cluster-start.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Options
5454
- string
5555
- Name of the profile where the public and private
5656
keys for the project are set. If omitted, uses the
57-
``default`` profile. To learn more about creating a
57+
{+default-profile+}. To learn more about creating a
5858
profile, see :ref:`mcli-configure`.
5959
- no
6060

@@ -80,7 +80,7 @@ Example
8080
-------
8181

8282
The following ``mongocli atlas cluster start`` command starts a sample
83-
cluster named ``myCluster``. The command uses the default profile.
83+
cluster named ``myCluster``. The command uses the {+default-profile+}.
8484

8585
.. code-block:: text
8686
:copyable: false

source/reference/atlas/cluster-update.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Options
9494

9595
* - ``--profile``, ``-P``
9696
- string
97-
- Name of the profile to use for accessing the |service| project.
98-
If omitted, uses the ``default`` profile.
97+
- Name of the profile to use for accessing the |service|
98+
project. If omitted, uses the {+default-profile+}.
9999
- no
100100

101101
* - ``--projectId``
@@ -124,7 +124,7 @@ Example 1
124124

125125
The following ``mongocli atlas cluster update`` command migrates the
126126
cluster named ``sbxCluster`` in the specified project from ``M10`` to
127-
``M20``. It uses the default profile to access the project.
127+
``M20``. It uses the {+default-profile+} to access the project.
128128

129129
.. code-block:: sh
130130
:copyable: false

source/reference/atlas/clusters-indexes-create.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Options
9393
- string
9494
- Name of the profile where the public and private
9595
keys for the project are set. If omitted, uses the
96-
``default`` profile. To learn more about creating a
96+
{+default-profile+}. To learn more about creating a
9797
profile, see :ref:`mcli-configure`.
9898
- no
9999

@@ -171,7 +171,7 @@ Example 1
171171

172172
The following ``mongocli atlas clusters indexes create`` command creates
173173
an index named ``bedrooms_1`` on the ``listings`` collection
174-
of the ``realestate`` database. The command uses the default profile.
174+
of the ``realestate`` database. The command uses the {+default-profile+}.
175175

176176
.. code-block:: text
177177
:copyable: false
@@ -191,7 +191,7 @@ Example 2
191191
The following ``mongocli atlas clusters indexes create`` command creates
192192
a compound index named ``property_room_bedrooms`` on the
193193
``listings`` collection of the ``realestate`` database. The
194-
command uses the default profile.
194+
command uses the {+default-profile+}.
195195

196196
.. code-block:: text
197197
:copyable: false

0 commit comments

Comments
 (0)