@@ -20,30 +20,15 @@ General Options
20
20
21
21
.. program:: mongosh
22
22
23
- .. option:: --eval <javascript>
24
-
25
- Evaluates a JavaScript expression that is specified as an argument.
26
- The |mdb-shell| does not load its own environment when evaluating
27
- code. As a result, many options of the shell environment are not
28
- available when using this option.
29
-
30
23
.. option:: --help, -h
31
24
32
25
Returns information on the options and use of the |mdb-shell|.
33
26
34
- .. option:: --norc
35
-
36
- Prevents the shell from sourcing and evaluating
37
- :file:`~/.mongorc.js` on start up.
38
-
39
- .. option:: --shell
40
-
41
- Enables the shell interface. If you invoke the ``mongosh``
42
- command and specify a JavaScript file as an argument, or use
43
- :option:`--eval <--eval>` to specify JavaScript on the command line,
44
- the :option:`--shell <--shell>` option provides the user with a shell
45
- prompt after the file finishes executing.
27
+ .. option:: --nodb
46
28
29
+ Don't connect to |mongod| instance on startup. No ``db address`` arguments
30
+ expected.
31
+
47
32
.. option:: --version
48
33
49
34
Returns the |mdb-shell| release number.
@@ -92,21 +77,6 @@ Connection Options
92
77
93
78
mongodb+srv://server.example.com/?connectionTimeout=3000ms
94
79
95
- .. option:: --ipv6
96
-
97
- Enables IPv6 support. the |mdb-shell| disables IPv6 by default.
98
-
99
- To connect to a MongoDB cluster via IPv6, you must specify
100
- both :option:`--ipv6 <--ipv6>` *and*
101
- :option:`--host (mongod/mongos IPv6 address) <--host>`
102
- when starting the |mdb-shell|.
103
-
104
- :binary:`~bin.mongod` and :binary:`~bin.mongos` disable IPv6 support
105
- by default. Specifying :option:`--ipv6 <--ipv6>` when connecting to a
106
- ``mongod/mongos`` does not enable IPv6 support on the
107
- ``mongod/mongos``. For documentation on enabling IPv6 support on the
108
- ``mongod/mongos``, see :setting:`net.ipv6`.
109
-
110
80
.. option:: --port <port>
111
81
112
82
Specifies the port where the :binary:`~bin.mongod` or
0 commit comments