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.

  1. Open Terminal.
  2. Edit (nano or vi) your .bash_profile.
  3. Add the following to the end of it:
    export PATH=/Applications/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/bin:$PATH

  4. Save the file and exit your editor.
  5. 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/