How to make command run in terminal? Command not found
Since the directory above has a space included, you'll need to enclose the directory in quotes for it to work properly:

PATH=$PATH:"/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin"


In order to load the new PATH after you add the above line to your .bash_profile (you can create this file if necessary. in your home folder), you should either open a new Terminal window, or type:

source ~/.bash_profile


You can check to see if it is correct by typing:

echo $PATH


It should show the directory you've added.

Also, any time an executable is not in the PATH you need to give a proper (absolute or relative) path to the executable in order for it to run. The relative path to the PWD (present working directory) is ./, e.g. ./cbtransfer.

It is possible that your default shell is not BASH, type

echo $SHELL


to check this.

The benefit of adjusting your path in this fashion is that the change will persist across terminal sessions and reboots. You can alternately use an export command to set your path for a current terminal session.