x-mongo-seed

Simple tool to seed a mongodb with data from arbitrary JSON files

Usage no npm install needed!

<script type="module">
  import xMongoSeed from 'https://cdn.skypack.dev/x-mongo-seed';
</script>

README

x-mongo-seed

Simple tool to seed a mongodb with data from arbitrary JSON files

Installation

$ npm install --save-dev x-mongo-seed

Usage

x-mongo-seed [options] <url> <file>

Options:

-h, --help         output usage information
-V, --version      output the version number
-u, --url <url>    mongodb db complete url
-f, --file <file>  seed json file path

Examples

x-mongo-seed mongodb://127.0.0.1:27017/fourdwin seed.json
x-mongo-seed --url mongodb://127.0.0.1:27017/fourdwin --file seed.json

License

MIT