This turns out to be pretty simple.

$ diskutil list # find the disk you want to eject
$ diskutil eject /dev/disk2 # eject it
# wait...

diskutil eject by itself will give help on the verb.