Mongotui is a terminal user interface MongoDB client that is designed to be easy to use and fast.
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
- π 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
If you have HomeBrew installed, use the tap shown below.
brew tap kreulenk/brew
brew install mongotui
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
Ensure that you have at least Go 1.23 installed on your system.
Then, run
make install