mpc
Control Music Player Daemon (MPD)
TLDR
Toggle play/pause
Stop playing
Show information about the currently playing song
Play the next song
Play the previous song
Seek n seconds forward (+) or backward (-)
SYNOPSIS
mpc [options] <command> [arguments]
PARAMETERS
-h <host>
Specifies the host to connect to.
-p <port>
Specifies the port to connect to.
-P <password>
Specifies the password to use.
-q
Quiet mode; suppresses most output.
-v
Verbose mode; provides more detailed output.
add <URI>
Add a URI to the playlist.
clear
Clear the playlist.
current
Show the currently playing song.
load <playlist>
Load a playlist.
lsinfo
List directory contents with metadata.
next
Play the next song in the playlist.
pause
Toggle pause/resume.
play [position]
Start playing (optionally at a specific position).
playlist
Show the current playlist.
prev
Play the previous song in the playlist.
random [on|off]
Toggle random mode.
repeat [on|off]
Toggle repeat mode.
save <playlist>
Save the current playlist.
seek <[+][-]hh:mm:ss>
Seek to a specific time.
stop
Stop playing.
update [path]
Update the MPD database (optionally for a specific path).
volume <[+][-]num>
Set the volume.
DESCRIPTION
mpc is a command-line client for Music Player Daemon (MPD). It connects to an MPD server and allows you to control the music playback. You can use mpc to add songs to the playlist, play, pause, stop, skip tracks, adjust the volume, manage playlists, and perform many other operations.
mpc is a flexible tool that can be used in scripts, cron jobs, and interactive sessions, making it a powerful way to manage your music collection via MPD. Its simplicity allows complex configurations to be managed from the command line.
CONFIGURATION
mpc reads its configuration from ~/.config/mpc/config, allowing you to specify the host, port, and password for your MPD server. This avoids needing to specify these parameters on the command line every time.
SEE ALSO
mpd(1)