A library/command line utility (that can be installed a .net tool) to import/export data from MongoDb.
The tool is similar to MongoImport/Export, but
- can be used as a library, which may be easier to use in test scenarios
- has options for parallel file imports
- is written in .net, making it easier to customize for a .net developer to customize how the tool works
MangoSeed is a cross platform utility (Linux, Windows, OSX) that can be run stand-alone or be installed as a .net tool. The easiest option is to install it as a .net tool (no fuss, easy updating, etc).
To install MangeSeed as a .net global tool, run the following command:
dotnet tool install --global MangoSeed
You can also install MangoSeed as a local tool:
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local MangoSeed
✏️ Note
If you are using zsh, the dotnet tool installer does not add it's tools directory to your paths. You can resolve this by adding the following to ~/.zshrc
export PATH=$HOME/.dotnet/tools:$PATH
MangoSeed has 2 high level capabilities, importing and exporting.
To view all of the import options:
mangoseed import --help
To view all of the export options:
mangoseed export --help