Skip to content

kreulenk/mongotui

Repository files navigation

Mongotui

Latest Release

Mongotui is a terminal user interface MongoDB client that is designed to be easy to use and fast.

demo.gif

Usage

Mongotui aims to make switching from mongosh easy as it has similar flags and commands when first connecting to a MongoDB server.

If you have a local MongoDB server running on the default port and no authentication, you can run the following command to get up and running.

mongotui localhost

Mongotui also accepts full MongoDB connection strings.

mongotui mongodb://user:password@localhost:27017

Explore the help menu if additional connection information is required.

mongotui --help

Features

  • πŸ”— Similar connection flags/options to mongosh
  • πŸ“‚ Navigate between databases/collections/documents
  • πŸ—‚ Filter displayed databases/collections
  • πŸ” Query for specific documents
  • πŸ“„ Pagination of document results
  • πŸ‘οΈ View an entire document
  • βž• Insert a new database/collection/document
  • ✏️ Edit a document using your $EDITOR of choice
  • πŸ—‘οΈ Drop databases/collections and delete documents

Installation

MacOS

If you have HomeBrew installed, use the tap shown below.

brew tap kreulenk/brew
brew install mongotui

Linux

Navigate to the Releases section of mongotui's GitHub repository and download the latest tar for your processor architecture. Then, untar the executable and move it to /usr/local/bin/mongotui.

E.g.

curl -OL https://github.com/kreulenk/mongotui/releases/download/v1.5.1/mongotui-linux-amd64.tar.gz
tar -xzvf mongotui-linux-amd64.tar.gz
mv ./mongotui /usr/local/bin/mongotui

Build From Source

Ensure that you have at least Go 1.23 installed on your system.

Then, run

make install

About

A MongoDB client with a terminal user interface

Resources

License

Stars

Watchers

Forks