A CLI for better management of MongoDB commands
I got tired of copy-pasting urls from different environments while running MongoDB commands.
This CLI supports the following MongoDB commands:
mongoimport
: import data to a MongoDB collectionmongoexport
: export data from a MongoDB collectionmongodump
: create a binary export from MongoDBmongorestore
: import data from a MongoDB dump
Aditional commands:
setenv
: to set an environment for each db connection (dev, staging, prod, etc.)
Make sure you have Docker installed in your machine. The commands are executed inside a Docker container, so the CLI doesn't depend on mongo
shell local installations.
- improve code documentation
- add go-prompt to auto-complete commands