Embed cue

metaflac --import-cuesheet-from="file.cue" --set-tag-from-file="CUESHEET=file.cue" "file.flac"

Extract cue

Remove "CUESHEET=" from the first line in cue file after the extraction.

metaflac --show-tag="CUESHEET" "file.flac" > "file.cue"

Generate cue

metaflac --export-cuesheet-to="file.cue" "file.flac"

Remove all metadata

metaflac --remove-all "file.flac"

Remove picture without padding remaining

metaflac --dont-use-padding --remove --block-type=PICTURE "file.flac"

Import picture

metaflac --import-picture-from="cover.jpg" "file.flac"metaflac --import-picture-from="3|image/jpeg|description|300x300x24|cover.jpg" "file.flac"

Split single file to multiple files

# Install cuetools, shntool, flacbrew install cuetools shntool flac# Download `cuetag` script from # https://github.com/gumayunov/split-cue/blob/master/cuetagchmod +x cuetag && mv cuetag /usr/local/bin# Extract cuemetaflac --show-tag="CUESHEET" "file.flac" > "file.cue"# Edit cue cuesheet=REM GENRE Soundtrack# Remove 'cuesheet=' from the first line, it will be the followingREM GENRE Soundtracksed -i "" "1s|cuesheet=||g" "file.cue" # for macsed -i"" "1s|cuesheet=||g" "file.cue" # for linux# splitshnsplit -o flac -f "file.cue" "file.flac"# cue to each track filecuetag "file.cue" [0-9]*.flac