it, short for iTunes Terminal, could help you control iTunes in your terminal.
To use it, you should clone this repo:
git clone git://github.com/shawjia/it.git && cd it
and then create a symbolic link:
ln -s $PWD/it /usr/local/bin/
it play/pause/toggle/stop
it next(skip)/previous(pre)
it up/down/top/mute/volume(vol)
it rate 0~100
it repeat off/one/all
it uncheck(never)
it shuffle off/on
it setting(config)
it genius
it xiami
it douban
it playlist [playlist name]
it help