Command Line Interface for MongoDB. For learning purposes.
APACHE-2.0 License
Command Line Interface for MongoDB. MongoCLI.
Status: development in progress
mongocli ping
- check database connection, pingmongocli dbs
- list existing database namesmongocli colls
or mongocli colls -d <db name>
- list collection namesmongocli count <coll name>
- count documents in the collectionmongocli list <coll name>
- list documents in the collection~/mongocli.yml
(example configuration file included)mongocli ping -s localhost -p 27017 -d config
or mongocli ping --server localhost --port 27017 --database config
For now, MongoCLI distributed only via GitHub.
git clone https://github.com/KenanBek/mongocli.git
make test
make test/e2e
make build
Note: test coverage is not full.
docker run --name mongodb -p 27017:27017 mongo
mongocli ping