- Brew install mongodb-compass
- Get connection info, go to project page in MongoDB Atlas,and click "connect", it shows something.
- Use MongoDB-Compass, go to collection on the left side, then click collection on top bar, click export collection and selete the export type like csv or json, eventually choose the export folder.