45
calibre User Manual, Release 2.56.0
fields: author_sort, authors, comments, cover, formats, id, identifiers, isbn, languages, last_modified, pubdate,
publisher, rating, series, series_index, size, tags, timestamp, title, uuid Default: title,authors. The special field
"all" can be used to select all fields.
--for-machine
Generate output in JSON format, which is more suitable for machine parsing. Causes the line width and sepa-
rator options to be ignored.
--limit
The maximumnumberof results to display. Default: all
--line-width, -w
The maximumwidth ofa single line in the output. Defaults to detecting screen size.
--prefix
The prefixforall file paths. Default is the absolute path to the library folder.
--search, -s
Filterthe results by the searchquery. For the format of the search query,please see the search related documen-
tation in the UserManual. Default is to do nofiltering.
--separator
The string used to separate fields. Default is a space.
--sort-by
The field by which to sort the results. Available fields: author_sort, authors, comments, cover, formats, identi-
fiers, isbn, languages,last_modified, pubdate,publisher, rating, series, series_index,size, tags, timestamp, title,
uuid Default: id
add
calibredb add [options] file1 file2 file3 ...
Add the specified files as books to the database. You can also specify directories, see the directory related options
below.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For
example “C:some path with spaces”
--authors, -a
Set the authors of the addedbook(s)
--cover, -c
Path to the cover to use for the added book
--duplicates, -d
Add books to database even iftheyalready exist. Comparisonis done based on book titles.
--empty, -e
Add an empty book (a book with no formats)
--identifier, -I
Set the identifiers forthis book, for e.g. -Iasin:XXX -I isbn:YYY
--isbn, -i
Set the ISBN of the added book(s)
--languages, -l
Acomma separated list of languages (best to use ISO639 language codes, though some language names may
also be recognized)
234
Chapter 1. Sections