CALIBREDB(1) calibre CALIBREDB(1) NAME calibredb - calibredb calibredb command [options] [arguments] calibredb calibre calibredb calibre calibre calibre calibre-server calibre / -> calibredb calibre 2 o --enable-local-write calibredb calibre calibre -> -> FirefoxFirefox Firefox v149 o calibredb --username --password calibre-server --enable-auth --manage-users calibre -> -> / URL --with-library o o list o add o o remove o add_format o remove_format o show_metadata o set_metadata o export o catalog o EPUB o saved_searches o add_custom_column o custom_columns o remove_custom_column o set_custom o restore_database o check_library o list_categories o backup_metadata o clone o embed_metadata o search o fts_index o fts_search o notes o items o virtual_libraries o annotations o trash o data_files --help, -h --library-path, --with-library calibrecalibre URL library_idIDlibrary_id-ID --password calibre ( > ) --timeout calibre2 --username calibre --version LIST calibredb list [options] calibre calibredb : "/some path/with spaces" --ascending --fields, -f : author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid : title,authors "all" *field_name #rating *rating --for-machine JSONJSON --limit --line-width, -w 1 --prefix --search, -s --separator ( --sort-by : author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid : id *field_name #rating *rating --template "template" calibre: --template_file, -t "template" --template_heading : template --for-machine ADD calibredb add [options] file1 file2 file3 ... calibredb : "/some path/with spaces" --authors, -a --automerge, -m 'ignore' 'overwrite' 'new_record' --cover, -c --duplicates, -d --automerge --empty, -e 1 --identifier, -I -I asinXXX -I isbnYYY --isbn, -i ISBN --languages, -l (ISO639) --series, -s --series-index, -S --tags, -T --title, -t --add glob --ignore glob*pdfPDF --one-book-per-directory, -1 --recurse, -r REMOVE calibredb remove ids idsids (IDsearch): 23,34,57-85 () calibredb : "/some path/with spaces" --permanent ADD_FORMAT calibredb add_format [options] id ebook_file ebook_file id idsearch calibredb : "/some path/with spaces" --as-extra-data-file --dont-replace REMOVE_FORMAT calibredb remove_format [options] id fmt fmt id id search fmt LRF, TXT, EPUB calibredb : "/some path/with spaces" SHOW_METADATA calibredb show_metadata [options] id id calibreid search ID calibredb : "/some path/with spaces" --as-opf OPF (XML) SET_METADATA calibredb set_metadata [options] book_id [/path/to/metadata.opf] calibreOPFmetadata.opfbook_idsearchID show_metadata--as-opfOPF --field--fieldOPF calibredb : "/some path/with spaces" --field, -f field_name:value : --field tags:tag1,tag2 --list-fields : ISO639( en fr ) --field identifiers:isbn:XXXX,doi:YYYYYBoolean(yes/no)true, false yes, no --list-fields, -l --field EXPORT calibredb export [options] ids ids OPF ID calibredb : "/some path/with spaces" --all ID --dont-asciiize calibre Unicode OFF --dont-save-cover calibre OFF --dont-save-extra-files OFF --dont-update-metadata calibre OFF --dont-write-opf calibreOPF OFF --formats --progress --replace-whitespace --single-dir 1 --template "{author_sort}/{title}/{title} - {authors}" : {author_sort, authors, id, isbn, languages, last_modified, pages, pubdate, publisher, rating, series, series_index, tags, timestamp, title} --timefmt %d - , %b - (), %m - , %Y - . : %b, %Y --to-dir . --to-lowercase CATALOG calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options] path/to/destination options --help calibredb : "/some path/with spaces" --ids, -i ID :option: ` --search` : all --search, -s : --verbose, -v EPUB --catalog-title : 'My Books' : AZW3, EPUB, MOBI --cross-reference-authors : 'False' : AZW3, EPUB, MOBI --debug-pipeline : 'None' : AZW3, EPUB, MOBI --exclude-genre : '[.+]|^+$' : '[Project Gutenberg]' '+' : AZW3, EPUB, MOBI --exclusion-rules ('','Tags','') ('','',''). : (('Archived books','#status','Archived'),) 'status' 'Archived' : "(('Catalogs','Tags','Catalog'),)" : AZW3, EPUB, MOBI --generate-authors 'Authors' : 'False' : AZW3, EPUB, MOBI --generate-descriptions 'Description' : 'False' : AZW3, EPUB, MOBI --generate-genres 'Genres' : 'False' : AZW3, EPUB, MOBI --generate-recently-added 'Recently Added' : 'False' : AZW3, EPUB, MOBI --generate-series : 'False' : AZW3, EPUB, MOBI --generate-titles 'Titles' : 'False' : AZW3, EPUB, MOBI --genre-source-field 'Genre' : '' : AZW3, EPUB, MOBI --header-note-source-field Description : '' : AZW3, EPUB, MOBI --merge-comments-rule #:[before|after]:[True|False] [before|after] [True|False] : '::' : AZW3, EPUB, MOBI --output-profile 'kindle' 'kindle_dx' : 'None' : AZW3, EPUB, MOBI --prefix-rules ('','','','') : '(('Read books','tags','+','\/'),('Wishlist item','tags','Wishlist','x'))' : AZW3, EPUB, MOBI --preset GUI : 'None' : AZW3, EPUB, MOBI --thumb-width () : 1.0 - 2.0 : '1.0' : AZW3, EPUB, MOBI --use-existing-cover : 'False' : AZW3, EPUB, MOBI SAVED_SEARCHES calibredb saved_searches [options] [list|add|remove] () : calibredb saved_searches list : calibredb saved_searches add search_name search_expression : calibredb saved_searches remove search_name calibredb : "/some path/with spaces" ADD_CUSTOM_COLUMN calibredb add_custom_column [options] label name datatype label name datatype: bool, comments, composite, datetime, enumeration, float, int, rating, series, text calibredb : "/some path/with spaces" --display JSON:option:--display"{\ "enum_values\ ":[\ "val1\ ", \ "val2\ "]}" : composite_template, composite_sort, make_category,contains_html, use_decorations : date_format : enum_values, enum_colors, use_decorations : number_format : is_names, use_decorations GUIOPF(OPF)OPF "display" JSON --is-multiple : datatypetext CUSTOM_COLUMNS calibredb custom_columns [options] ID calibredb : "/some path/with spaces" --details, -d REMOVE_CUSTOM_COLUMN calibredb remove_custom_column [options] label label custom_columns calibredb : "/some path/with spaces" --force, -f SET_CUSTOM calibredb set_custom [options] column id value id search ID custom_columns calibredb : "/some path/with spaces" --append, -a RESTORE_DATABASE calibredb restore_database [options] calibreOPFmetadata.db : OPF 01 2 calibredb : "/some path/with spaces" --really-do-it, -r CHECK_LIBRARY calibredb check_library [options] invalid_titles, extra_titles, invalid_authors, extra_authors, missing_formats, extra_formats, extra_files, missing_covers, extra_covers, malformed_formats, malformed_paths, failed_folders calibredb : "/some path/with spaces" --csv, -c CSV --ignore_extensions, -e () : all --ignore_names, -n : all --report, -r : all --vacuum-fts-db LIST_CATEGORIES calibredb list_categories [options] calibredb : "/some path/with spaces" --categories, -r : all --csv, -c CSV --dialect DSV: excel, excel-tab, unix --item_count, -i --width, -w 1 BACKUP_METADATA calibredb backup_metadata [options] OPF --all OPF OPF calibredb : "/some path/with spaces" --all OPF CLONE calibredb clone path/to/new/library calibredb : "/some path/with spaces" EMBED_METADATA calibredb embed_metadata [options] book_id calibre calibre book_id 'all' id : calibredb embed_metadata 1 2 10-15 23 calibredb : "/some path/with spaces" --only-formats, -f SEARCH calibredb search [options] search expression IDIDcalibre: calibredb search author:asimov 'title:"i robot"' calibredb : "/some path/with spaces" --limit, -l FTS_INDEX calibredb fts_index [options] enable/disable/status/reindex enable FTS disable FTS status reindex id reindex id calibredb : "/some path/with spaces" --indexing-speed fast slow slow --wait-for-completion FTS_SEARCH calibredb fts_search [options] search expression calibredb : "/some path/with spaces" --do-not-match-on-related-words --include-snippets --indexing-threshold 90 --match-end-marker --match-start-marker --output-format "text"JSON "json" --restrict-to IDids:1,2,3 IDsearch:tag:foo foo NOTES calibredb notes [options] [list|search|show|set|remove] FIELD authorsseriestagspublisher#mycolumn ITEM : calibredb notes list [FIELD] calibre SQLite --field : calibredb notes search "search expression" calibredb notes search --field authors "search expression" Markdown --as-html HTML set : calibredb notes show FIELD ITEM HTML HTML - base64 data: URL : calibredb notes set FIELD ITEM FILE : calibredb notes remove FIELD ITEM calibredb : "/some path/with spaces" --as-html MarkdownHTML --field : authorstags#mycolumn ITEMS calibredb items [options] (rename|remove) FIELD ITEM ... calibreFIELD: authorstagsseriespublisher #mycolumn NEW_NAME2NEW_NAME calibredb items rename FIELD ITEM NEW_NAME 1 calibredb items remove FIELD ITEM [ITEM ...] calibredb : "/some path/with spaces" --search, -s : tags:"=Fiction" VIRTUAL_LIBRARIES calibredb virtual_libraries [options] [list|add|rename|remove] calibredb search 'vl:"name"' : calibredb virtual_libraries list : calibredb virtual_libraries add name search_expression : calibredb virtual_libraries rename name new_name : calibredb virtual_libraries remove name ... calibredb : "/some path/with spaces" --for-machine JSON --replace ANNOTATIONS calibredb annotations [options] [list|search|export|import|remove] (calibre ) ID: calibredb annotations list SQLite ID --search --type --user-type --annotation-user --no-stemming --format json JSON : calibredb annotations search "search expression" MarkdownJSON JSON calibre : calibredb annotations export JSON calibre 1BOOK_ID IDIDFORMAT FORMAT : calibredb annotations import BOOK_ID FORMAT FILE FILE - UUID calibre --user-type web --annotation-user USER 1 --user-type --annotation-user ID (list ) : calibredb annotations remove ID ... calibredb : "/some path/with spaces" --annotation-user --user-type web --format, -f : text, markdown, json text json : text --no-stemming --search, -s : --search "series:Foundation" --type, -t : highlight, bookmark --user-type calibre (local) (web) local TRASH calibredb trash [options] (list|restore|delete|empty) [ids] ids remove ID: 23,34,57-85 () () --for-machine UTC : calibredb trash list --formats : calibredb trash restore ids : calibredb trash delete ids : calibredb trash empty calibredb : "/some path/with spaces" --for-machine list JSON --formats DATA_FILES calibredb data_files [options] (list|add|get|rename|remove) BOOK_ID ... / () metadata.opf () (Unix ) JSON --for-machine : calibredb data_files list BOOK_ID --name --replace add_format --as-extra-data-file : calibredb data_files add BOOK_ID FILE 1 --output --replace : calibredb data_files get BOOK_ID NAME --output FILE --replace : calibredb data_files rename BOOK_ID NAME NEW_NAME --permanent : calibredb data_files remove BOOK_ID NAME rename remove 1 calibredb : "/some path/with spaces" --for-machine JSON --name () --output get --permanent --replace Author Kovid Goyal Copyright Kovid Goyal 9.18.0 11 06, 2026 CALIBREDB(1)