{"id":15555037,"url":"https://github.com/spencerjibz/mongocli-client","last_synced_at":"2026-04-15T14:08:12.332Z","repository":{"id":57301738,"uuid":"172183199","full_name":"spencerjibz/mongoCli-client","owner":"spencerjibz","description":"SIMPLE CLI MONGO CLIENT FOR WINDOWS, LINUX AND MACOS","archived":false,"fork":false,"pushed_at":"2021-06-18T23:31:27.000Z","size":5337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-25T11:02:48.920Z","etag":null,"topics":["colorjs","commanderjs","inquirerjs","mongodb","mongodb-driver","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spencerjibz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-23T07:04:52.000Z","updated_at":"2022-02-19T19:34:28.000Z","dependencies_parsed_at":"2022-08-24T17:11:46.756Z","dependency_job_id":null,"html_url":"https://github.com/spencerjibz/mongoCli-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2FmongoCli-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2FmongoCli-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2FmongoCli-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2FmongoCli-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spencerjibz","download_url":"https://codeload.github.com/spencerjibz/mongoCli-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131243,"owners_count":20728299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colorjs","commanderjs","inquirerjs","mongodb","mongodb-driver","mongoose","nodejs"],"created_at":"2024-10-02T15:06:00.935Z","updated_at":"2026-04-15T14:08:12.301Z","avatar_url":"https://github.com/spencerjibz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MongoCli-client \n[![Run tests](https://github.com/spencerjibz/mongoCli-client/actions/workflows/node.js.yml/badge.svg)](https://github.com/spencerjibz/mongoCli-client/actions/workflows/node.js.yml)\n\n A simple command-line client for mongodb built on top of mongoose and the native mongodb-driver.It was designed to simplify usage of mongodb and its tools(shell). Once installed globally. No need for a GUI client.\n \n### Requirements for usage\n - Nodejs  (v7 and higher) installed\n - Mongodb (local, v3.6 and less)\n### Installation\n Before you install, ensure you  have nodejs v7.xx and higher.Command-line tool is available on the npm registry.\u003cbr\u003e\n \n ``` npm install mongocli-client -g ```\n \n### Features\n - All CRUD(Create,Read,Update and Delete) operations with Mongodb \n - Connection and management of the remote database via the remote command below\n### Usage\n``` Usage: app [options] [command]\nOptions:\n  -h, --help                       output usage information\nCommands:\n  start|s                            starts the mongo service for windows platform or\n                                     checks if the service is  running on other platforms\n  kill|k                             stops the mongodb service\n  list|ls                            lists the databases available for usage\n  documents|docs [options] \u003cdbname\u003e  returns all the documents in specific collection in a database\n  find|f [options] \u003cdbname\u003e          finds the specific document from the name database\n  list-collection|cols \u003cdbname\u003e      list all the collections in the preferred database\n  del|-d [options] \u003cdbname\u003e          deletes specified document from the database\n  remote|re                          connects to a remote database ie mlab or mongoaltas or \n                                     local mongo shell\n  eval|ev [options] \u003ccmd\u003e            run mongo shell commmand parsed as arguements\n  delcol|rmc [options] \u003ccmd\u003e         deletes the named collection\n  mkCol|ccol [options] \u003ccmd\u003e         create collection\n  delAll|dAll [options] \u003cdbname\u003e     deletes all the documents in the specific collection\n  add [options] \u003cdbname\u003e             add documents or an array of documents into the collection\n  update|up [options] \u003cdbname\u003e       updated a specific document\n  dropDb \u003cdbname\u003e                    drops the specified database\n  stats \u003cdbname\u003e                     returns of the statistics of the named database\n  mkDb \u003cdbname\u003e                      creates  the specified database\n  ```\n  \n![](https://raw.githubusercontent.com/spencerjibz/mongoCli-client/master/assets/general.gif)\n### key Facts on Usage\n**Note**: For all the CRUD commands to work, ensure mongodb is running on the computer\u003cBr\u003e\n1.**Start Command**: \u003cbr\u003e \n For windows users, you should know the path to the mongo-bin directory. You'll be prompted to insert it Its better if you installed mongodb manually.\u003cbr\u003e\n ![](https://raw.githubusercontent.com/spencerjibz/mongoCli-client/master/assets/startCommand.gif)\n2.**Remote Command**: \u003cbr\u003e\n This command was designed to connect to a remote database or the local mongo shell. you'll be prompted to insert connection string.\n if no connection is inserted, the App connects you to the mongoShell. Note: windows users  must insert the mongo-bin path when prompted for this command to work. The command is illustrated in gif below.\u003cbr\u003e\n ![](https://raw.githubusercontent.com/spencerjibz/mongoCli-client/master/assets/remoteCommand.gif)\n3.**CRUD operation illustration**\u003cbr\u003e\n These operations illustrated below are only possible if mongodb service is running.\n ![](https://raw.githubusercontent.com/spencerjibz/mongoCli-client/master/assets/Crd.gif)\n Enjoy the rest of the features\n### Testing\n Ensure that mongodb is running before running the command below.\u003cbr\u003e\n ``` npm test ```\n\n### License\n  [MIT](https://github.com/spencerjibz/mongoCli-client/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencerjibz%2Fmongocli-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspencerjibz%2Fmongocli-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencerjibz%2Fmongocli-client/lists"}