calibredb - calibredb
calibredb command [options] [arguments]
:command:
`
calibredb`는 캘리버
데이터베이스에 대한
명령줄
인터페이스입니다.
아래에 설명된 여러
하위 명령이 있습니다.
calibredb`는 경로로
지정된 캘리버
데이터베이스나 로컬
머신이나
인터넷에서 실행되는
캘리버 :guilabel:`콘텐츠
서버`를 조작하는 데
사용할 수 있습니다.
:command:`calibre-server 프로그램을
사용하거나 기본
프로그램에서
연결/공유 →
콘텐츠 서버 시작`을
클릭하여, :guilabel:`콘텐츠
서버 캘리버를 시작할
수 있습니다. :command:
`
calibredb`는 캘리버 서재를
변경할 수 있으므로
먼저 서버에서 인증을
설정해야 합니다. 이를
위한 두 가지 방법이
있습니다.
- •
- 같은 컴퓨터에서
실행되는 서버에만
연결하려는 경우
콘텐츠 서버의
--enable-local-write 옵션을
사용하여 calibredb를 포함한
모든 프로그램이
로컬에서 실행되도록
허용할 수 있습니다.
캘리버 데이터를
변경하려면 컴퓨터를
사용하십시오. 주요
프로그램에서 서버를
실행할 때 이 옵션은
:guilabel:
`
환경설정->넷을 통한
공유->고급`에
있습니다.
- •
- 인터넷을 통한
액세스를
활성화하려면
서버에서 사용자
계정을 설정하고
--username 및 --password
옵션을 calibredb`에
사용하여
액세스합니다. `--enable-auth``
옵션을 사용하고
``
--manage-users``를 사용하여
사용자 계정을
생성하여 :command:
`
calibre-server`에 대한 사용자
인증을 설정할 수
있습니다. 주요
프로그램에서 서버를
실행하는 경우 :guilabel:
`
환경설정->넷을 통한
공유
->사용자이름/비밀번호`를
사용하십시오.
실행 중인 콘텐츠
서버에 연결하려면
서버의 URL을 --with-library
옵션으로
전달하십시오. 자세한
내용과 예시는 해당
옵션 설명서를
참조하십시오.
- remove
- add_format
- remove_format
- show_metadata
- set_metadata
- export
- catalog
- saved_searches
- add_custom_column
- custom_columns
- remove_custom_column
- set_custom
- restore_database
- check_library
- list_categories
- backup_metadata
- clone
- embed_metadata
- search
- fts_index
- fts_search
- --library-path,
--with-library
- Path to the calibre library. Default is to use the path stored in the
settings. You can also connect to a calibre Content server to perform
actions on remote libraries. To do so use a URL of the form:
http://hostname:port/#library_id for example,
http://localhost:8080/#mylibrary. library_id is the library id of
the library you want to connect to on the Content server. You can use the
special library_id value of - to get a list of library ids available on
the server. For details on how to setup access via a Content server, see
https://manual.calibre-ebook.com/generated/en/calibredb.html.
- --password
- Password for connecting to a calibre Content server. To read the password
from standard input, use the special value: <stdin>. To read the
password from a file, use: <f:/path/to/file> (i.e. <f: followed
by the full path to the file and a trailing >). The angle brackets in
the above are required, remember to escape them or use quotes for your
shell.
- --timeout
- The timeout, in seconds, when connecting to a calibre library over the
network. The default is two minutes.
- --username
- Username for connecting to a calibre Content server
캘리버
데이터베이스에
등록되어 있는 책들의
목록을 표시합니다.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --fields,
-f
- The fields to display when listing books in the database. Should be a
comma separated list of fields. Available fields: author_sort, authors,
comments, cover, formats, identifiers, isbn, languages, last_modified,
pubdate, publisher, rating, series, series_index, size, tags, template,
timestamp, title, uuid Default: title,authors. The special field
"all" can be used to select all fields. In
addition to the builtin fields above, custom fields are also available as
*field_name, for example, for a custom field #rating, use the name:
*rating
- --for-machine
- Generate output in JSON format, which is more suitable for machine
parsing. Causes the line width and separator options to be ignored.
- --limit
- The maximum number of results to display. Default: all
- --line-width,
-w
- The maximum width of a single line in the output. Defaults to detecting
screen size.
- --prefix
- The prefix for all file paths. Default is the absolute path to the library
folder.
- --search,
-s
- 검색 쿼리로 결과를
필터링합니다. 검색
쿼리 의 형식은
사용자 설명서에서
검색 관련 설명서를
참조하십시오.
기본값은 필터링을
하지 않는 것입니다.
- --sort-by
- The field by which to sort the results. You can specify multiple fields by
separating them with commas. Available fields: author_sort, authors,
comments, cover, formats, identifiers, isbn, languages, last_modified,
pubdate, publisher, rating, series, series_index, size, tags, template,
timestamp, title, uuid Default: id
- --template
- The template to run if "template" is in the field
list. Default: None
- --template_file,
-t
- Path to a file containing the template to run if
"template" is in the field list. Default:
None
- --template_heading
- Heading for the template column. Default: template. This option is ignored
if the option --for-machine is set
calibredb add [옵션] 파일1 파일2 파일3 ...
지정된 파일을
데이터베이스에
책으로 추가합니다.
폴더를 지정할 수도
있습니다. 아래의 폴더
관련 옵션을
참조하십시오.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --automerge,
-m
- If books with similar titles and authors are found, merge the incoming
formats (files) automatically into existing book records. A value of
"ignore" means duplicate formats are discarded. A
value of "overwrite" means duplicate formats in
the library are overwritten with the newly added files. A value of
"new_record" means duplicate formats are placed
into a new book record.
- --duplicates,
-d
- Add books to database even if they already exist. Comparison is done based
on book titles and authors. Note that the --automerge option takes
precedence.
- --identifier,
-I
- Set the identifiers for this book, e.g. -I asin:XXX -I isbn:YYY
- --languages,
-l
- 쉼표로 구분된 언어
목록 (일부 언어
이름도 인식될 수
있지만, ISO639 언어 코드를
사용하는 것이 가장
좋습니다)
폴더에서 추가
Options to control the adding of books from folders. By default
only files that have extensions of known e-book file types are added.
- --add
- A filename (glob) pattern, files matching this pattern will be added when
scanning folders for files, even if they are not of a known e-book file
type. Can be specified multiple times for multiple patterns.
- --ignore
- A filename (glob) pattern, files matching this pattern will be ignored
when scanning folders for files. Can be specified multiple times for
multiple patterns. For example: *.pdf will ignore all PDF files
- --one-book-per-directory,
-1
- Assume that each folder has only a single logical book and that all files
in it are different e-book formats of that book
Remove the books identified by ids from the database. ids should
be a comma separated list of id numbers (you can get id numbers by using the
search command). For example, 23,34,57-85 (when specifying a range, the last
number in the range is not included).
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb add_format [options] id ebook_file
Add the e-book in ebook_file to the available formats for the
logical book identified by id. You can get id by using the search command.
If the format already exists, it is replaced, unless the do not replace
option is specified.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb remove_format [options] id fmt
Remove the format fmt from the logical book identified by id. You
can get id by using the search command. fmt should be a file extension like
LRF or TXT or EPUB. If the logical book does not have fmt available, do
nothing.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb show_metadata [options] id
Show the metadata stored in the calibre database for the book
identified by id. id is an id number from the search command.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb set_metadata [options] book_id [/path/to/metadata.opf]
Set the metadata stored in the calibre database for the book
identified by book_id from the OPF file metadata.opf. book_id is a book id
number from the search command. You can get a quick feel for the OPF format
by using the --as-opf switch to the show_metadata command. You can also set
the metadata of individual fields with the --field option. If you use the
--field option, there is no need to specify an OPF file.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --field,
-f
- 설정할 필드입니다.
형식은
field_name:value입니다(예: --field
tags:tag1,tag2). --list-fields`을
사용하여 모든 필드
이름 목록을
가져옵니다. 이
옵션을 여러 번
지정하여 여러 필드를
설정할 수 있습니다.
참고: 언어의 경우 ISO639
언어 코드를 사용해야
합니다(예: 영어는 en,
프랑스어는 fr 등).
식별자의 경우 구문은
:option:--field`
identifiers:isbn:XXXX,doi:YYYYY입니다.
불리언(예/아니요)
필드의 경우 참/거짓
또는 예/아니요를
사용합니다.
- --list-fields,
-l
- List the metadata field names that can be used with the --field
option
calibredb export [options] ids
Export the books specified by ids (a comma separated list) to the
filesystem. The export operation saves all formats of the book, its
cover and metadata (in an OPF file). Any extra data files associated with
the book are also saved. You can get id numbers from the search command.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --all
- 데이터베이스의 모든
책을 내보냅니다. ID
목록은 무시합니다.
- --dont-asciiize
- Have calibre convert all non English characters into English equivalents
for the file names. This is useful if saving to a legacy filesystem
without full support for Unicode filenames. Specifying this switch will
turn this behavior off.
- --dont-save-cover
- 보통, 캘리버는
표지를 실제 전자책
파일과 함께 별도의
파일에 저장합니다.
Specifying this switch will turn this behavior off.
- --dont-save-extra-files
- Save any data files associated with the book when saving the book
Specifying this switch will turn this behavior off.
- --dont-update-metadata
- 캘리버가 캘리버
서재에 있는
메타데이터를 가져와
저장된 파일의
메타데이터를
업데이트합니다.
디스크에 저장하는
시간이 더 걸리게
됩니다. Specifying this switch will turn this behavior
off.
- --dont-write-opf
- 보통, 캘리버는 실제
전자책 파일과 함께
분리된 OPF 파일 내에
메타데이터를
기록합니다. Specifying this switch will turn
this behavior off.
- --formats
- 책마다 저장할 형식의
목록이며 쉼표로
구분합니다.
기본값으로 모든(all)
이용가능한 형식으로
저장됩니다.
- --template
- The template to control the filename and folder structure of the saved
files. Default is "{author_sort}/{title}/{title} -
{authors}" which will save books into a per-author subfolder
with filenames containing title and author. Available controls are:
{author_sort, authors, id, isbn, languages, last_modified, pubdate,
publisher, rating, series, series_index, tags, timestamp, title}
- --timefmt
- 날짜를 표시하는
양식. %d - 일, %b - 월, %m -
월(숫자), %Y - 년도.
기본값: %b, %Y
- --to-dir
- Export books to the specified folder. Default is .
calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options]
Export a catalog in format specified by path/to/destination
extension. Options control how entries are displayed in the generated
catalog output. Note that different catalog formats support
different sets of options. To see the different options, specify the name of
the output file and then the --help option.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --ids, -i
- 범주에 추가할
데이터베이스 ID의
쉼표로 구분된
목록입니다.
선언되면, :option:
`
--search`는 무시됩니다.
기본값: 모두
- --search,
-s
- 검색 쿼리로 결과를
필터링합니다. 검색
쿼리 의 형식은
사용자 설명서에서
검색 관련 문서를
참조하십시오.
기본값: 필터링 없음
- --catalog-title
- 메타데이터에서
제목으로 사용되는
생성된 범주의
제목입니다. 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --debug-pipeline
- 변환 파이프라인의
다른 단계에서 출력을
지정된 폴더에
저장합니다. 변환
프로세스의 어느
단계에서 버그가
발생하는지 확실하지
않은 경우
유용합니다. 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --exclude-genre
- 장르로 제외할 태그를
설명하는
정규식입니다.
기본값:
'기본값(%d)'은
괄호로 묶인 태그를
제외합니다(예: '[Project
Gutenberg]', 및 '+', 책
읽기의 기본 태그.
적용 대상: AZW3, EPUB, MOBI 출력
형식
- --exclusion-rules
- 생성된 범주에서 책을
제외하는 데 사용되는
규칙을 지정합니다.
제외 규칙의 모델은
다음 중 하나입니다.
('<rule
name>','태그','<comma-separated
list of tags>') 또는 ('<rule
name>','<custom
column>','<pattern>'). 예를
들어: (('보관된
책','#상태','보관됨'),)
맞춤 열 '상태'에서
값이 '보관됨'인
책은 제외됩니다.
여러 규칙이 정의되면
모든 규칙이
적용됩니다. 기본값:
"기본값(%d)" 적용
대상: AZW3, EPUB, MOBI 출력 형식
- 설명 헤더에 삽입할
메모 텍스트가 포함된
사용자 정의
필드입니다. 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --merge-comments-rule
- #<custom
field>:[이전|이후]:[참|거짓]
지정: <custom field> 주석과
병합할 메모가 포함된
사용자 정의 필드
[이전|이후] 주석에
대한 주석 배치
[참|거짓] - 메모와 주석
사이에 가로줄을
삽입합니다. 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --output-profile
- 출력 프로필을
지정합니다. 어떤
경우에는 장치의
범주를 최적화하기
위해 출력 프로필이
필요합니다. 예를
들어, 'kindle' 또는
'kindle_dx'는 섹션 및
기사가 있는 구조화된
목차를 작성합니다.
기본값: '기본값(%d)'
적용 대상: AZW3, EPUB, MOBI 출력
형식
- --prefix-rules
- 읽은 책, 위시리스트
항목 및 기타 사용자
지정 접두사를
나타내는 접두사를
포함하는 데 사용되는
규칙을 지정합니다.
접두사 규칙의 모델은
('<rule name>','<source
field>','<pattern>','<prefix>')입니다.
여러 규칙이 정의된
경우 첫 번째 일치
규칙이 사용됩니다.
기본값:
"기본값(%d)" 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --preset
- GUI 범주 빌더로 작성된
명명된 프리셋을
사용합니다. 프리셋은
범주 작성을 위한
모든 설정을
지정합니다. 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
- --thumb-width
- 범주의 책 표지에
대한 힌트
크기(인치)입니다.
범위: 1.0 - 2.0 기본값:
'기본값(%d)' 적용
대상: AZW3, EPUB, MOBI 출력 형식
calibredb saved_searches [옵션] (list|add|remove)
이 데이터베이스에
저장된 저장된 검색을
관리합니다. 이미
존재하는 이름으로
쿼리를 추가하려고
하면 대체됩니다.
추가할때 구문:
calibredb saved_searches add search_name
search_expression
제거할때 구문:
calibredb saved_searches remove search_name
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb add_custom_column [options] label name datatype
Create a custom column. label is the machine friendly name of the
column. Should not contain spaces or colons. name is the human friendly name
of the column. datatype is one of: bool, comments, composite, datetime,
enumeration, float, int, rating, series, text
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --display
- 이 열의 데이터가
해석되는 방식을
사용자 지정하기 위한
옵션 사전입니다.
이것은 JSON
문자열입니다. 열거
열의 경우 --display"{\
"enum_values\ ":[\ "val1\
", \ "val2\ "]}"를
사용합니다. 표시
변수에 들어갈 수
있는 많은 옵션이
있습니다. 열 유형별
옵션은 다음과
같습니다: 복합: composite_template,
composite_sort, make_category,contains_html, use_decorations
날짜시간: date_format 열거:
enum_values, enum_colors, use_decorations: enum_values, enum_colors,
use_decorations int, float: number_format 텍스트:
is_names, use_decorations 합법적인
조합을 찾는 가장
좋은 방법은 GUI에서
적절한 유형의 사용자
지정 열을 만든 다음
책에 대한 백업 OPF를
확인하는
것입니다(열이 추가된
이후 새 OPF가
생성되었는지 확인).
OPF의 새 열에 대한
"디스플레이"에
대한 JSON이
표시됩니다.
- --is-multiple
- This column stores tag like data (i.e. multiple comma separated values).
Only applies if datatype is text.
calibredb custom_columns [options]
List available custom columns. Shows column labels and ids.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb remove_custom_column [options] label
Remove the custom column identified by label. You can see
available columns with the custom_columns command.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb set_custom [options] column id value
Set the value of a custom column for the book identified by id.
You can get a list of ids using the search command. You can get a list of
custom column names using the custom_columns command.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --append,
-a
- If the column stores multiple values, append the specified values to the
existing ones, instead of replacing them.
calibredb restore_database [options]
Restore this database from the metadata stored in OPF files in
each folder of the calibre library. This is useful if your metadata.db file
has been corrupted.
WARNING: This command completely regenerates your database. You
will lose all saved searches, user categories, plugboards, stored per-book
conversion settings, and custom recipes. Restored metadata will only be as
accurate as what is found in the OPF files.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --really-do-it,
-r
- Really do the recovery. The command will not run unless this option is
specified.
calibredb check_library [options]
Perform some checks on the filesystem representing a library.
Reports are invalid_titles, extra_titles, invalid_authors, extra_authors,
missing_formats, extra_formats, extra_files, missing_covers, extra_covers,
failed_folders
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --vacuum-fts-db
- Vacuum the full text search database. This can be very slow and memory
intensive, depending on the size of the database.
calibredb list_categories [options]
Produce a report of the category information in the database. The
information is the equivalent of what is shown in the Tag browser.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --dialect
- The type of CSV file to produce. Choices: excel, excel-tab, unix
- --item_count,
-i
- Output only the number of items in a category instead of the counts per
item within the category
- --width,
-w
- The maximum width of a single line in the output. Defaults to detecting
screen size.
calibredb backup_metadata [options]
Backup the metadata stored in the database into individual OPF
files in each books folder. This normally happens automatically, but you can
run this command to force re-generation of the OPF files, with the --all
option.
Note that there is normally no need to do this, as the OPF files
are backed up automatically, every time metadata is changed.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --all
- Normally, this command only operates on books that have out of date OPF
files. This option makes it operate on all books.
calibredb clone path/to/new/library
Create a clone of the current library. This creates a new,
empty library that has all the same custom columns, Virtual libraries and
other settings as the current library.
The cloned library will contain no books. If you want to create a
full duplicate, including all books, then simply use your filesystem tools
to copy the library folder.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb embed_metadata [options] book_id
Update the metadata in the actual book files stored in the calibre
library from the metadata in the calibre database. Normally, metadata is
updated only when exporting files from calibre, this command is useful if
you want the files to be updated in place. Note that different file formats
support different amounts of metadata. You can use the special value 'all'
for book_id to update metadata in all books. You can also specify many book
ids separated by spaces and id ranges separated by hyphens. For example:
calibredb embed_metadata 1 2 10-15 23
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --only-formats,
-f
- Only update metadata in files of the specified format. Specify it multiple
times for multiple formats. By default, all formats are updated.
calibredb search [옵션] search expression
지정된 검색어에
대해 서재를 검색하여
검색 표현식과
일치하는 책 ID의
쉼표로 구분된 목록을
반환합니다. 출력
형식은 ID 목록을
입력으로 허용하는
다른 명령에 입력하는
데 유용합니다.
검색 표현식은
캘리버의 강력한
검색어 언어의 모든
것이 될 수 있습니다.
예: calibredb search author:asimov 'title:"i
robot"'
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
calibredb fts_index [options] enable/disable/status/reindex
Control the Full text search indexing process.
- enable
- Turns on FTS indexing for this library
- disable
- Turns off FTS indexing for this library
- status
- Shows the current indexing status
- reindex
- Can be used to re-index either particular books or the entire library. To
re-index particular books specify the book ids as additional arguments
after the reindex command. If no book ids are specified the entire library
is re-indexed.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --indexing-speed
- The speed of indexing. Use fast for fast indexing using all your computers
resources and slow for less resource intensive indexing. Note that the
speed is reset to slow after every invocation.
calibredb fts_search [options] search expression
Do a full text search on the entire library or a subset of it.
Whenever you pass arguments to calibredb that have spaces in them,
enclose the arguments in quotation marks. For example: "/some path/with
spaces"
- --include-snippets
- Include snippets of the text surrounding each match. Note that this makes
searching much slower.
- --indexing-threshold
- How much of the library must be indexed before searching is allowed, as a
percentage. Defaults to 90
- --output-format
- The format to output the search results in. Either
"text" for plain text or
"json" for JSON output.
- --restrict-to
- Restrict the searched books, either using a search expression or ids. For
example: ids:1,2,3 to restrict by ids or search:tag:foo to restrict to
books having the tag foo.