Skip to content

OCC Command Line

Rello edited this page Dec 9, 2018 · 5 revisions

The main activities can be performed from occ:

  • resetting the music library for one user
  • resetting the music library for all users
  • initial search for audio files for one user
  • initial search for audio files for all users
  • starting a global rescan e.g. in case of:
  • app version upgrades
  • changed audio files (tags, cover)

occ audioplayer:scan [options] [--] [< user_id >]…

Arguments:
user_id scan all audio files of the given user(s)

Options:
--all scan all audio files of all known users
-v/-vv/-vvv run the scan in debug/verbose mode


occ audioplayer:reset [options] [--] [< user_id >]…

Arguments:
user_id reset the whole library of the given user(s)

Options:
--all reset the whole library of all known users

Examples

sudo -u www-data php occ audioplayer:scan username -vv
sudo -u www-data php occ audioplayer:scan username1 username2
sudo -u www-data php occ audioplayer:scan --all
sudo -u www-data php occ audioplayer:reset --all

Clone this wiki locally