Upload files to MongoDB GridFS using cli
$ npm install --global gfs-upload-cli
$ gfs-upload --help
Usage: gfs-upload [options] [files...]
Upload files to MongoDB GridFS using cli.
Options:
-h, --help output usage information
-V, --version output the version number
-H, --host <string> MongoDB URI
-v, --verbose Verbose output
Examples:
$ gfs-upload -v -H mongodb://localhost:27107/testDB /tmp/test.jpg
$ gfs-upload -H mongodb://localhost/testDB ../images/* ../js/*.js ../css/*
MIT © Nikolay Spiridonov