I want to install a tool different from mplayer on a mac to play music. I want to be able to play mp3 music files that are in a folder, either in order or randomly. I.e. I want to do something like

player files/*
player -shuffle files/*

with some key shortcuts to pause and skip to the next title.

What other command line too is there I can try?

1 Answer 1


There is already a command line tool installed. The command is afplay and you run it by typing:

afplay /path/to/audiofile.mp3

This link describes better how to use this tool. https://osxdaily.com/2009/10/27/play-mp3s-and-other-music-from-the-command-line/

  • This command cannot be used. Two requirements, which I mentioned in the question, are missing: 1. I want to be able to play a list of files (i.e. use afplay folder_with_many_files/* and 2. I want to be able to shuffle the files. But nevermind, I think I will just create a tool myself.
    – Alex
    Feb 16, 2021 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .