calibredb
TLDR
List all books
$ calibredb list
Add book to library$ calibredb add [book.epub]
Remove book by ID$ calibredb remove [23]
Search for books$ calibredb search "[title:keyword]"
Show book metadata$ calibredb show_metadata [42]
Set book metadata$ calibredb set_metadata [42] -f [title:"New Title"]
Export books$ calibredb export [23,45] --to-dir [output/]
Add format to existing book$ calibredb add_format [42] [book.mobi]
SYNOPSIS
calibredb command [options] [arguments]
DESCRIPTION
calibredb is the command-line interface to the Calibre ebook database. It manages ebook libraries, adds/removes books, modifies metadata, and can connect to local or remote Calibre Content servers.
PARAMETERS
--library-path=path
Path to Calibre library--with-library=url
Connect to Content server-f, --field=name:value
Set metadata field--as-opf
Output metadata as OPF--for-machine
Output in JSON format
COMMANDS
list
List books in databaseadd
Add books to databaseremove
Remove books by IDsearch
Search for booksshow_metadata
Display book metadataset_metadata
Modify book metadataexport
Export books from databaseadd_format
Add format to existing bookremove_format
Remove format from bookcatalog
Generate catalogbackup_metadata
Backup metadata to OPF files
OUTPUT FIELDS
Available fields: title, authors, publisher, pubdate, rating, series, tags, formats, identifiers, isbn, languages, comments, cover, uuid
CAVEATS
Book IDs can be found using search command. Arguments with spaces must be quoted. On macOS, tools are inside calibre.app bundle.
SEE ALSO
calibre(1), ebook-convert(1), ebook-meta(1), calibre-server(1)


