mongosh
MongoDB Shell
Syntax
$mongosh [options] [database]
Optionen
--host
--port
--eval
--username
--password
Beispiele
Beispiele
$mongosh
Beispiele
$mongosh mongodb://localhost:27017/database
Beispiele
$mongosh --eval "db.collection.find()"
Beispiele
$mongosh < script.js
Siehe auch
Alternativen
Typische Anwendungsfälle
Hinweis
Interaktive MongoDB-Shell. Nachfolger von mongo.
Export