Skip to content

Instantly share code, notes, and snippets.

@jahe
Created October 15, 2015 21:59
Show Gist options
  • Select an option

  • Save jahe/26fe0138caef8acaeb1d to your computer and use it in GitHub Desktop.

Select an option

Save jahe/26fe0138caef8acaeb1d to your computer and use it in GitHub Desktop.
MongoDB Cheatsheet
# Start MongoDB server
> mongod
# Start MongoDB CLI client
> mongodb
# Create or open database "myDatabase"
> use myDatabase
# Show a list of all databases
> show dbs
# Show all documents in a collection myCollection
> db.myCollection.find()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment