For windows10, please add the path in the environment variable section.
Firstly, download the mongodb data tools by https://www.mongodb.com/try/download/database-tools
- Right click the window start icon => click "system" => click "advanced system setting"
- Click "environment variable"
- Select "PATH", click "Edit" , click "New" => Add path which the mongodb data tools is installed
For your reference, my path is: C:\Program Files\MongoDB\Tools\100\bin
Finally, open the Windows PowerShell:
PS C:\>mongodump --version
The version of the mongodump should be shown which the setting is ok.
mongodump version: 100.5.3
git version: 139703c0587796da96c367f365473d0266f9cede
Go version: go1.17.8
os: windows
arch: amd64
compiler: gc
ref link: https://www.mongodb.com/docs/database-tools/installation/installation-windows/