CouchDB now includes a fancy, pre-compiled OS X app file that you can download. This works fine, except that the CLI (command-line interface) tools don’t get automatically added to the path. So, after dragging Apache CouchDB.app to your Applications folder, do the following to get access to the CLI tools.
- Open Terminal.
- Edit (nano or vi) your .bash_profile.
- Add the following to the end of it:
export PATH=/Applications/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/bin:$PATH
- Save the file and exit your editor.
- Type
source .bash_profile
to load the .bash_profile and gain immediate access to the CLI tools.
Once you’ve done this, paths referenced via couchdb -c
will be relative to:
/Applications/Apache CouchDB.app/Contents/Resources/couchdbx-core/