The play command works with MP3 files, as well as almost any other audio file you refer it to. An example syntax for playing a file in the iTunes library with afplay looks like this, with a full path to the file name:Īfplay ~ / Music / iTunes / iTunes Music / Grateful Dead / Ripple-live.mp3