moc is a nice CLI based music player, which supports background server mode. It can be easily installed on Mac with:

$ sudo port install moc

A moc server can be easily startup by:

$ mocp -S *.mp3

$ mocp -p # start playing

$ mocp -x # exit the server