GithubHelp home page GithubHelp logo

kenanbek / mongocli Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 0.0 56 KB

Command Line Interface for MongoDB. For learning purposes.

License: Apache License 2.0

Go 95.47% Dockerfile 1.76% Makefile 2.76%
mongodb cli client command-line mongoclient golang go

mongocli's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.