mongosh
MongoDB Shell
Syntax
$mongosh [options] [database]
Optionen
--host
--port
--eval
--username
--password
Examples
Examples
$mongosh
Examples
$mongosh mongodb://localhost:27017/database
Examples
$mongosh --eval "db.collection.find()"
Examples
$mongosh < script.js
See also
Alternatives
Typical use cases
Note
Interactive MongoDB Shell. Successor of mongo.
Export