Skip to content

nick-popovic/mon-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mon-go

mon-go: A Simple MongoDB CLI Shell

mon-go is a basic command-line interface (CLI) shell for interacting with MongoDB databases, built using Go and the BubbleTea TUI framework. It allows you to navigate databases, collections, and documents, similar to a traditional shell in a Unix-like environment.

Usage

Run the program directly using go run:

go run main.go [connection_string]

Commands

  • cd: Navigate between databases and collections.
  • ls: List databases, collections, or documents.
    • Lists up to 5 entries by default.
    • Displays a "results truncated" message when limit is passed.
    • -la flag: Lists all entries, without truncation.
mon-go (/) > # command                             

admin
config

Installation

  1. Prerequisites:

    • Go (version 1.18 or later recommended)
    • MongoDB server running (either locally or remotely)
  2. Clone/Download Repo:

    git clone https://github.com/nick-popovic/mon-go.git
    cd mon-go
  3. Build (Optional):

    go build -o mon-go

    This creates an executable file named mon-go (or mon-go.exe on Windows).

About

A Simple MongoDB CLI Shell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages