LinuxCommandLibrary

beets

TLDR

Import music into your library

$ beet import [path/to/music]
copy
Import without auto-tagging
$ beet import -A [path/to/music]
copy
List all albums
$ beet ls -a
copy
Search for tracks
$ beet ls [artist:beatles]
copy
Update library statistics
$ beet stats
copy
Move files to match library organization
$ beet move
copy
Modify metadata
$ beet modify [query] [field=value]
copy
Fetch missing album art
$ beet fetchart
copy

SYNOPSIS

beet command [options] [query]

DESCRIPTION

beets is a music library manager and organizer that automatically tags, organizes, and manages music collections. It queries online databases like MusicBrainz to identify albums and correct metadata.
During import, beets identifies albums, fixes metadata, downloads album art, and moves files into a structured directory hierarchy. The query system allows powerful searches and bulk modifications across the library.
The plugin system extends functionality with features like fetching lyrics, managing play counts, converting formats, and integrating with music players. Configuration is stored in ~/.config/beets/config.yaml.

PARAMETERS

import [path]

Import music files into the library.
ls [query]
List tracks or albums matching query.
modify query field=value
Modify metadata for matching items.
move [query]
Move files to match configured paths.
rm query
Remove items from the library.
update [query]
Update library from file changes.
stats
Show library statistics.
-a, --album
Operate on albums instead of tracks.
-f, --format template
Custom output format.
-A, --noautotag
Skip automatic tagging during import.

QUERY SYNTAX

artist:name: Match artist field
album:name: Match album field
year:2020: Match year
year:2018..2022: Year range
bitrate:320..: Minimum bitrate
path:/music/: Match file path

PLUGINS

fetchart: Download album artwork
lyrics: Fetch song lyrics
lastgenre: Get genres from Last.fm
convert: Transcode to different formats
duplicates: Find duplicate tracks
web: Web interface for browsing

CAVEATS

Initial import of large libraries can be time-consuming due to online lookups. Automatic matching may fail for obscure releases or poorly-tagged files. The database must be kept in sync with actual files; moving files outside beets can cause inconsistencies.

HISTORY

Beets was created by Adrian Sampson starting in 2010 as a research project while pursuing a PhD in computer science. It grew from a personal tool into a comprehensive music management system. The project has been open source since inception and benefits from community-contributed plugins. It remains one of the most capable command-line music library managers available.

SEE ALSO

mpd(1), kid3(1), picard(1), metaflac(1)

Copied to clipboard