@@ -29,15 +29,12 @@ variable. For detailed instructions for each of our supported platforms, please
29
29
$ mongosh [options] [db address]
30
30
31
31
Options:
32
+
32
33
-h, --help Show this usage information
33
- --ipv6 Enable IPv6 support (disabled by default)
34
34
--host [arg] Server to connect to
35
35
--port [arg] Port to connect to
36
36
--version Show version information
37
- --shell Run the shell after executing files
38
37
--nodb Don' t connect to mongod on startup - no ' db address' [arg] expected
39
- --norc Will not run the ' .mongorc.js' file on start up
40
- --eval [arg] Evaluate javascript
41
38
--retryWrites Automatically retry write operations upon transient network errors
42
39
43
40
Authentication Options:
@@ -46,46 +43,40 @@ variable. For detailed instructions for each of our supported platforms, please
46
43
-p, --password [arg] Password for authentication
47
44
--authenticationDatabase [arg] User source (defaults to dbname)
48
45
--authenticationMechanism [arg] Authentication mechanism
49
- --gssapiServiceName [arg] (=mongodb) undefined
50
- --gssapiHostName [arg] Automatically retry write operations upon transient network errors
46
+ --awsIamSessionToken [arg] AWS IAM Temporary Session Token ID
51
47
52
48
TLS Options:
53
49
54
50
--tls Use TLS for all connections
55
51
--tlsCertificateKeyFile [arg] PEM certificate/key file for TLS
56
- --tlsCertificateKeyFilePassword [arg] undefined
52
+ --tlsCertificateKeyFilePassword [arg] Password for key in PEM file for TLS
57
53
--tlsCAFile [arg] Certificate Authority file for TLS
58
- --tlsCRLFile [arg] Certificate Revocation List file for TLS
59
- --tlsAllowInvalidHostnames undefined
60
- --tlsAllowInvalidCertificates undefined
54
+ --tlsAllowInvalidHostnames Allow connections to servers with non-matching hostnames
55
+ --tlsAllowInvalidCertificates Allow connections to servers with invalid certificates
61
56
--tlsCertificateSelector [arg] TLS Certificate in system store
62
57
--tlsDisabledProtocols [arg] Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]
63
58
64
- FLE AWS Options
59
+ FLE Options:
65
60
66
61
--awsAccessKeyId [arg] AWS Access Key for FLE Amazon KMS
67
62
--awsSecretAccessKey [arg] AWS Secret Key for FLE Amazon KMS
68
63
--awsSessionToken [arg] Optional AWS Session Token ID
69
64
--keyVaultNamespace [arg] database.collection to store encrypted FLE parameters
70
- --kmsURL [arg] Test parameter to override the URL for
65
+ --kmsURL [arg] Test parameter to override the URL of the KMS endpoint
71
66
72
- DB Address Examples
67
+ DB Address Examples:
73
68
74
69
foo Foo database on local machine
75
70
192.168.0.5/foo Foo database on 192.168.0.5 machine
76
71
192.168.0.5:9999/foo Foo database on 192.168.0.5 machine on port 9999
77
72
mongodb://192.168.0.5:9999/foo Connection string URI can also be used
78
73
79
- File Names
80
-
81
- A list of files to run. Files must end in .js and will exit after unless --shell is specified.
82
-
83
- Examples
74
+ Examples:
84
75
85
76
Start mongosh using ' ships' database on specified connection string:
86
77
$ mongosh mongodb://192.168.0.5:9999/ships
87
78
88
- For more information on mongosh usage: https://docs.mongodb.com/manual/mongo/ .
79
+ For more information on usage: https://docs.mongodb.com/mongodb-shell .
89
80
```
90
81
91
82
## Releasing
0 commit comments