Skip to main content

scan mongodb

metacrafter scan mongodb <host> [options]

host can be a hostname or a full mongodb:// URI.

MongoDB-specific options

FlagMeaning
--portPort (default 27017; ignored for URI hosts)
--dbnameDatabase name
--username / --passwordAuthentication

Plus the shared scan options. Default --limit is 1000 documents per field.

Examples

metacrafter scan mongodb localhost \
--port 27017 \
--dbname mydatabase \
--output-format json \
-o mongodb_results.json

metacrafter scan mongodb "mongodb://user:pass@host1:27017,host2:27017/dbname?replicaSet=rs0" \
--format full \
-o mongodb_results.json