I understand you're trying to download Firestore collections to your local PC. I created a simple Node.js script that exports Firestore collections to JSON files, which you can easily use for local backups and later re-upload to Firestore.
Here’s the link to the script I made: firestore-export-local
This script:
Exports Firestore collections to separate JSON files.
Handles the export process with ease, and you can modify it according to your needs.
Just follow the instructions in the README, and it should work smoothly for your purpose!
Let me know if you need any help with it.