mongodump --db={{DB_NAME}} --out={{DESTINATION_DIRECTORY}}
- DB_NAME: Database's name.
- DESTINATION_DIRECTORY: Directory to save the output files. However, it is an optional parameter. By default, the command saves the registers in the current path.
mongodump --db=ak-cli --out=/arshad/ak-cli/db/dump