Skip to content
Giwi edited this page Nov 1, 2026 · 1 revision

CLI

The CLI uses the same library database as the GUI.

musicwasp-cli <command> [options]

Scan

musicwasp-cli scan ~/Music
musicwasp-cli scan ~/Music --rescan

The output reports new/updated, unchanged and failed files.

List and search

musicwasp-cli list
musicwasp-cli list --filter "floyd"
musicwasp-cli list --filter 'artist:radiohead year:1997'

Advanced search syntax is shared with the GUI. See Library and Search.

Play

musicwasp-cli play 42
musicwasp-cli play 42 --seconds 30
musicwasp-cli play ~/Music/song.flac

Statistics

musicwasp-cli stats

Auto-tag

musicwasp-cli autotag -r "Radiohead" -l "OK Computer"
musicwasp-cli autotag -r "Radiohead" -l "OK Computer" --apply best --ids 1,2,3 --cover

Search results are printed before applying. Network access to MusicBrainz and the Cover Art Archive is required.

Playlists

musicwasp-cli playlist list
musicwasp-cli playlist create "Mix" --ids 1,2,3
musicwasp-cli playlist import ~/Music/mix.m3u8 --folder Roadtrip
musicwasp-cli playlist export 3 ~/Music/roadtrip.m3u8
musicwasp-cli playlist folder-create "Roadtrip"
musicwasp-cli playlist folders

--folder accepts either an id or a name.

Clone this wiki locally