Command-Line Interface¶
Moe ships with a command-line interface to access and manipulate your music library.
Global Options¶
moe [-h] [--version] [--verbose] [--quiet] {add,edit,move,mv,read,remove,rm,list,ls} ...
Positional Arguments¶
{add,edit,move,mv,read,remove,rm,list,ls}The various sub-commands as described below.
Optional Arguments¶
-h, --helpDisplay the help message.
--versionDisplay the current version of Moe.
--verbose, -vIncrease logging verbosity; use
-vvto enable debug logging. This will increase the information displayed to you about what Moe is doing behind the scenes.--quiet, -qDecrease logging verbosity; use
-qqto limit logging to critical. This will decrease the information displayed to you about what Moe is doing behind the scenes.
add¶
Adds music to your library.
By default, when adding music to your library, the import plugin will attempt to import metadata from any enabled sources (e.g. musicbrainz), and then the move plugin will copy the newly added files per your configuration. If you’d like to disable either behavior, you can disable the plugins in your configuration file or by setting the MOE_DISABLE_PLUGINS environment variable.
Tip
If your music already has correct tags, you can save a lot of time when adding it to Moe by disabling the import plugin.
moe add [-h] [-a ALBUM_QUERY] path [path ...]
Positional Arguments¶
pathThe filesystem path of the track or album to add to the library. If
pathis a directory, Moe assumes that directory contains a single album.
Optional Arguments¶
-h, --helpDisplay the help message.
-a ALBUM_QUERY, --album_query ALBUM_QUERYAlbum to add an extra or track to (required if adding an extra).
edit¶
Edits music in your library.
moe edit [-h] [-a | -e] query FIELD=VALUE [FIELD=VALUE ...]
Positional Arguments¶
queryQuery your library for items to edit. See the query docs for more info.
FIELD=VALUEFIELDis any field for the type of query given. For example, if you are querying for albums with-a, --album,fieldmust be an album field.VALUEis the value to set the field to.See the fields page for all the available fields you can edit. Note that some fields cannot be edited and are annotated as such. If you want to create a new custom field, use the
-c, --createoption.Note
If the specified field supports multiple values, you can separate those values with a semicolon e.g.
genre=hip hop;pop.
Optional Arguments¶
-h, --helpDisplay the help message.
-a, --albumQuery for matching albums instead of tracks.
-c, --createCreates the field if it doesn’t already exist.
-e, --extraQuery for matching extras instead of tracks.
list (ls)¶
Lists music in your library.
moe list [-h] [-a | -e] [-p] query
Positional Arguments¶
queryQuery your library for items to list. See the query docs for more info.
Optional Arguments¶
-h, --helpDisplay the help message.
-a, --albumQuery for matching albums instead of tracks.
-e, --extraQuery for matching extras instead of tracks.
-i, --infoOutput full information on each item.
-p, --pathsList item paths.
move (mv)¶
Moves all items in the library according to your configuration file. This can be used to update the items in your library to reflect changes in your configuration.
moe move [-h] [-n]
Optional Arguments¶
-h, --helpDisplay the help message.
-n, --dry-runShow what will be moved without actually moving any files.
read¶
Updates Moe with any changes to your music files.
moe read [-h] [-a | -e] [-r] query
Positional Arguments¶
queryQuery your library for items to read. See the query docs for more info.
Optional Arguments¶
-h, --helpDisplay the help message.
-a, --albumQuery for matching albums instead of tracks.
-e, --extraQuery for matching extras instead of tracks.
-r, --removeRemove items that no longer exist on the filesystem.
remove (rm)¶
Removes music from your library.
moe remove [-h] [-a | -e] [-d] query
Positional Arguments¶
queryQuery your library for items to remove. See the query docs for more info.
Optional Arguments¶
-h, --helpDisplay the help message.
-a, --albumQuery for matching albums instead of tracks.
-e, --extraQuery for matching extras instead of tracks.
-d, --deleteDelete the items from the filesystem.