Skip to content

Commands

Pauli Järvinen edited this page Dec 22, 2024 · 4 revisions

The Music app has many commands available in the occ command line utility. To list them all, execute (assuming your web-server uses username www-data)

sudo -u www-data php occ music

The commands available on Music v2.0.0 are the following

music:cleanup              clean up orphaned DB entries (this happens also periodically on the background)
music:playlist-export      export user playlist(s) to file(s)
music:playlist-import      import user playlist(s) from file(s)
music:podcast-add          add a podcast channel from an RSS feed
music:podcast-reset        remove all podcast channels of one or more users
music:podcast-update       update podcast channels of one or more users from their sources
music:register-mime-types  map following file extensions as audio MIME types: ["aac","au","aif","aiff","aifc","caf"]
music:reset-cache          drop data cached by the music app for performance reasons
music:reset-database       drop metadata indexed by the music app (artists, albums, tracks, playlists)
music:scan                 scan and index any unindexed audio files

For each command, you can get more information about the available options with the argument --help, e.g.

sudo -u www-data php occ music:scan --help
Clone this wiki locally