unzip the folder then navigate the folder cd mongotools/
you find a bin folder that contains many binaries among them you find mongodump
make mongodump as a trusted application (by trying to double click it won't open so go to security and privacy in the setting of your mac you will find that mongodump tried to run make click on open anyway and put your password)
go to the terminal to the location where the unzipped mongotools/bin exist
run the following command
./mongodump --db="databasename" --uri="mongodb+srv://"username":"password"@"host"/"databasename"?retryWrites=true&w=majority" --out="destination folder"
make sure you have go installed follow that link if you do not have it https://golang.org/doc/install
download the mongodb tools from the following link https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools
unzip the folder then navigate the folder cd mongotools/
you find a bin folder that contains many binaries among them you find mongodump
make mongodump as a trusted application (by trying to double click it won't open so go to security and privacy in the setting of your mac you will find that mongodump tried to run make click on open anyway and put your password)
go to the terminal to the location where the unzipped mongotools/bin exist
run the following command ./mongodump --db="databasename" --uri="mongodb+srv://"username":"password"@"host"/"databasename"?retryWrites=true&w=majority" --out="destination folder"