Skip to content

runeimp/MongoDB_CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB CLI

This is a simple Bash CLI script for managing a local mongod instance.

Rational

With the changes to MongoDB 3.x and utilizing the WiredTiger storage engine it seemed almost impossible to continue utilizing launchctl (lunchy in my case) for launchd to autostart mongod and keep it running on OS X. So this script was created to handle launching my local mongod instance and has grown a bit and I still have some plants for it. Thus here it is on GitHub as open source. Hopefully it will be found useful to others. :-)

Installation

From within the cloned repo run:

./mongodb --install

Usage

Conventions

  • Commands are for managing mongod, etc.
  • Switches are for managing MongoDB CLI.

Examples

# Get MongoDB CLI help
mongodb help

# Start a mongod instance
mongodb start

# Stop a mongod instance
mongodb stop

# See which storage engine is being used with your mongod instance
mongodb storage

# Show the version of mongod installed
mongodb version

# Show the version of MongoDB CLI
mongodb --version

ostype

This is a simple Bash script to get general platform information. Included as a helper for mongodb. It's not as detailed as some that are available as the deep Exim os-type script.

ToDo

  • Add --install switch to auto link the scripts
  • Stuff, reasons, …

About

Simple CLI for managing MongoDB local server instances. :-)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages