mongocli

command module
v0.0.0-...-dd4b6ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

Gopher with MongoDB

MongoCLI

Command Line Interface for MongoDB. MongoCLI.

Status: development in progress

Features

  • mongocli ping - check database connection, ping
  • mongocli dbs - list existing database names
  • mongocli colls or mongocli colls -d <db name> - list collection names
  • mongocli count <coll name> - count documents in the collection
  • mongocli list <coll name> - list documents in the collection
  • Use configuration file for default connection settings and database name: ~/mongocli.yml (example configuration file included)
  • Use command line args for connection settings: mongocli ping -s localhost -p 27017 -d config or mongocli ping --server localhost --port 27017 --database config

Usage

For now, MongoCLI distributed only via GitHub.

  1. Clone repository
git clone https://github.com/KenanBek/mongocli.git
  1. Test & Build
make test
make test/e2e
make build

Note: test coverage is not full.

  1. Run Mongo with Docker
docker run --name mongodb -p 27017:27017 mongo
  1. Use
mongocli ping

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL