Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoTools

Warning ! Work in progress. This package isn't ready for production.

MongoTools is a little shell script that provide command line interface to manage Mongo documents.

These features are based on Mongo command line tools : mongoexport, mongoimport, ...
With a simple command, you can :

  • Import documents from JSON file
  • Export documents to JSON file
  • Clean documents by removing the content

Use this script directly in you shell or add it to grunt or git-hooks.

Installation

You can install "MongoTools" globally :

npm install -g mongotools

Or locally :

npm install mongotools --save-dev
ln -s node_modules/.bin/mongotools .

This second line create a symbolic link in your application root directory for MongoTools shell script.

Settings

You can pass parameters to script (see below).

Otherwise the script try to find information from package.json of your app.

"mongotools": {
    "db": "dbname",
    "collections": [
        "documents",
        "you",
        "want",
        "export/import/clear"
    ],
    "path": "./_datas/"
}

But, you can override these parametres via command line.

Usage

@TODO

License

BashTools is free and unencumbered public domain software.
For more information, see http://unlicense.org/ or the accompanying LICENSE file.

About

MongoTools provide simple command line interface to import/export/clear Mongo documents.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages