None of the tools in the homebrew package homebrew-brew/Formula/mongodb-database-tools.rb at master · mongodb/homebrew-brew · GitHub produce any output in the command line on Apple Silicon macOS when performing import/export/dump/restore operations, regardless of flags.
Non-operational flags like --help and --version do work, but -v (regardless how many) doesn’t, and there’s no operation output without any -v flags supplied either.
When the operation is finished and there is no file specified, the commands will output the data to stdout, but nothing else, see this terminal output snippet:
~/tmp
❯ echo $cs_old | cut -c1-10
mongodb://
~/tmp
❯ mongoexport -v --db my-db --collection=my-collection --out=tmp.json $cs_old
~/tmp
❯ cat tmp.json | head -n1
{"_id":{"$oid":"63d0f788330a682d62c2b93c"},"messageId":"3fb44c1f-bbfa-41dd-a86a-783f12e5d310","vin":"S0FTCARMB00000002","messageType":"vehiclesignal","version":1.0,"serviceId":1001,"timestamp":{"$date":"2023-03-21T07:56:00.397Z"},"sendingBehavior":"ON_INTERVAL_120_SEC","data":{"signals":[{"name":"Driving.Odometer.Lifetime","timestamp":"1679385303510","value":"40926","type":"integer"}]},"_class":"classpath.Entity"}
Version:
mongoexport --version
mongoexport version: 100.12.0
git version: 4558399ef8d5aa59a2779d5909fe9713da43b6af
Go version: go1.23.7
os: darwin
arch: arm64
compiler: gc