Scroll to navigation

CALIBREDB(1) calibre CALIBREDB(1)

NAME

calibredb - calibredb

calibredb command [options] [arguments]


calibredb is the command line interface to the calibre database. It has several sub-commands, documented below.

calibredb can be used to manipulate either a calibre database specified by path or a calibre Content server running either on the local machine or over the internet. You can start a calibre Content server using either the calibre-server program or in the main calibre program click Connect/share  →  Start Content server. Since calibredb can make changes to your calibre libraries, you must setup authentication on the server first. There are two ways to do that:

  • If you plan to connect only to a server running on the same computer, you can simply use the --enable-local-write option of the Content server, to allow any program, including calibredb, running on the local computer to make changes to your calibre data. When running the server from the main calibre program, this option is in Preferences → Sharing over the net → Advanced. Be careful though, because some browsers, primarily Firefox, allow arbitrary websites to also access local servers. If you use Firefox, it is better to setup username and password, as described below. Local Network Access restriction has still not been implemented as of Firefox v149.
  • If you want to enable access over the internet, then you should setup user accounts on the server and use the --username and --password options to calibredb to give it access. You can setup user authentication for calibre-server by using the --enable-auth option and using --manage-users to create the user accounts. If you are running the server from the main calibre program, use Preferences → Sharing over the net → Require username/password.



To connect to a running Content server, pass the URL of the server to the --with-library option, see the documentation of that option for details and examples.

  • 전역 옵션
  • list
  • add
•
폴더에서 추가

  • remove
  • add_format
  • remove_format
  • show_metadata
  • set_metadata
  • export
  • catalog
•
EPUB 옵션

  • 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
  • notes
  • items
  • virtual_libraries
  • annotations
  • trash
  • data_files

전역 옵션

이 도움말 메시지를 표시한 후 종료

calibre 라이브러리 경로입니다. 기본값은 설정에 저장된 경로를 사용하는 것입니다. 원격 라이브러리에서 작업을 수행하려면 calibre 콘텐츠 서버에 연결할 수도 있습니다. 이를 위해서는 <http://hostname:port/#library_id> 형식의 URL을 사용하십시오. 예: <http://localhost:8080/#mylibrary>. library_id는 콘텐츠 서버에서 연결하려는 라이브러리의 ID입니다. 특수한 library_id 값인 - 를 사용하면 서버에서 사용 가능한 라이브러리 ID 목록을 얻을 수 있습니다. 콘텐츠 서버를 통한 접근 설정 방법은 <https://manual.calibre-ebook.com/ko/generated/ko/calibredb>.html을 참조하십시오.

calibre 콘텐츠 서버에 연결할 때 사용할 비밀번호입니다. 표준 입력에서 비밀번호를 읽으려면 특수 값 <stdin>을 사용하십시오. 파일에서 비밀번호를 읽으려면 <f:/path/to/file>을 사용하십시오(즉, <f: 다음에 파일의 전체 경로를 쓰고 마지막에 >를 붙입니다). 위의 꺾쇠괄호는 필수이므로 셸에서 이스케이프하거나 따옴표로 감싸야 합니다.

네트워크를 통해 calibre 라이브러리에 연결할 때의 제한 시간(초)입니다. 기본값은 2분입니다.

calibre 콘텐츠 서버에 연결할 사용자 이름

프로그램의 버전을 표시한 후 종료함

LIST

calibredb list [options]


calibre 데이터베이스에 등록되어 있는 책들의 목록을 표시합니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

오름차순의 결과로 정렬함

데이터베이스의 책 목록을 표시할 때 보여줄 필드입니다. 필드는 쉼표로 구분해 지정해야 합니다. 사용 가능한 필드: 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을 사용하기

기계로 처리하기 더 적합한 JSON 형식으로 출력합니다. 이 경우 줄 너비와 구분자 옵션은 무시됩니다.

표시할 최대 결과 수, 기본값: 전체

출력에서 한 줄의 최대 너비입니다. 기본값은 화면 크기 자동 감지입니다.

모든 파일 경로의 접두사입니다. 기본값은 라이브러리 폴더의 절대 경로입니다.

검색 쿼리로 결과를 필터링합니다. 검색 쿼리 의 형식은 사용자 설명서에서 검색 관련 설명서를 참조하십시오. 기본값은 필터링을 하지 않는 것입니다.

문자열은 필드를 구분하는데 사용됩니다. 기본값은 공백입니다.

결과를 정렬할 필드입니다. 쉼표로 구분해 여러 필드를 지정할 수 있습니다. 사용 가능한 필드: 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"가 있을 때 실행할 템플릿입니다. calibre 서버에 연결 중일 때는 템플릿이 무시된다는 점에 유의하십시오. 기본값: None

"template"가 필드 목록에 있을 때 실행할 템플릿이 들어 있는 파일 경로, 기본값: 없음

템플릿 열의 제목, 기본값: template. 옵션 :option:
`
--for-machine`이(가) 설정되어 있으면 이 옵션은 무시됨

ADD

calibredb add [옵션] 파일1 파일2 파일3 ...


지정된 파일을 데이터베이스에 책으로 추가합니다. 폴더를 지정할 수도 있습니다. 아래의 폴더 관련 옵션을 참조하십시오.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

추가된 책(들)의 저자를 입력하기

비슷한 제목과 저자를 가진 책이 발견되면 들어오는 형식(파일)을 기존 책 레코드에 자동으로 병합합니다. "ignore" 값은 중복 형식을 버린다는 뜻입니다. "overwrite" 값은 라이브러리의 중복 형식을 새로 추가한 파일로 덮어쓴다는 뜻입니다. "new_record" 값은 중복 형식을 새 책 레코드에 넣는다는 뜻입니다.

추가된 책에 사용할 표지의 경로

--automerge 옵션이 우선 적용된다는 점에 유의하십시오. 이미 존재하는 책이라도 데이터베이스에 추가합니다. 비교는 책 제목과 저자를 기준으로 수행됩니다.

비어있는 책 추가하기 (형식이 없는 책)

이 책의 식별자를 설정하십시오. 예: -I asin:XXX -I isbn:YYY

추가된 책(들)의 ISBN을 입력하기

쉼표로 구분된 언어 목록 (일부 언어 이름도 인식될 수 있지만, ISO639 언어 코드를 사용하는 것이 가장 좋습니다)

추가된 책(들)의 시리즈를 입력하기

추가된 책(들)의 일련번호을 입력하기

추가된 책(들)의 태그를 입력하기

추가된 책(들)의 이름을 입력하기

폴더에서 추가

폴더에서 책을 추가하는 동작을 제어하는 옵션입니다. 기본적으로 알려진 전자책 파일 형식 확장자를 가진 파일만 추가됩니다.

파일명(글롭) 패턴입니다. 폴더에서 파일을 검색할 때 이 패턴과 일치하는 파일은 알려진 전자책 파일 형식이 아니어도 추가됩니다. 여러 패턴을 지정하려면 이 옵션을 여러 번 지정할 수 있습니다.

파일명(글롭) 패턴입니다. 폴더에서 파일을 검색할 때 이 패턴과 일치하는 파일은 무시됩니다. 여러 패턴을 지정하려면 이 옵션을 여러 번 지정할 수 있습니다. 예: *.pdf 는 모든 PDF 파일을 무시함

각 폴더에 논리적으로 하나의 책만 들어 있으며, 그 안의 모든 파일은 그 책의 서로 다른 전자책 형식이라고 가정함

폴더를 재귀적으로 처리

REMOVE

calibredb remove ids


ids로 식별되는 책을 데이터베이스에서 제거합니다. ids는 ID 번호의 쉼표 구분 목록이어야 합니다(ID 번호는 search 명령으로 확인할 수 있습니다). 예: 23,34,57-85(범위를 지정할 때 범위의 마지막 숫자는 포함되지 않습니다).

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Do not use the trash bin

ADD_FORMAT

calibredb add_format [options] id ebook_file


ebook_file의 전자책을 id로 식별되는 논리적 책의 사용 가능한 형식에 추가합니다. id는 search 명령으로 확인할 수 있습니다. 형식이 이미 존재하면 바꾸지 않기 옵션이 지정된 경우를 제외하고 대체됩니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

이 파일을 전자책 형식이 아니라 책의 추가 데이터 파일로 추가

이미 존재하는 형식이면 바꾸지 마세요

REMOVE_FORMAT

calibredb remove_format [options] id fmt


id로 식별되는 논리적 책에서 fmt 형식을 제거합니다. id는 search 명령으로 확인할 수 있습니다. fmt는 LRF, TXT, EPUB 같은 파일 확장자여야 합니다. 논리적 책에 fmt 형식이 없으면 아무 작업도 하지 않습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

SHOW_METADATA

calibredb show_metadata [options] id


id로 식별되는 책의 calibre 데이터베이스에 저장된 메타데이터를 표시합니다. id는 search 명령에서 얻는 ID 번호입니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

OPF 양식(XML)에서 메타데이터를 인쇄함

SET_METADATA

calibredb set_metadata [options] book_id [/path/to/metadata.opf]


book_id로 식별되는 책의 calibre 데이터베이스 메타데이터를 OPF 파일 metadata.opf의 내용으로 설정합니다. book_id는 search 명령에서 얻는 책 ID 번호입니다. OPF 형식은 show_metadata 명령에 --as-opf 스위치를 사용해 빠르게 확인할 수 있습니다. --field 옵션을 사용해 개별 필드의 메타데이터를 설정할 수도 있습니다. --field 옵션을 사용하면 OPF 파일을 지정할 필요가 없습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

설정할 필드입니다. 형식은 field_name:value입니다(예: --field tags:tag1,tag2). --list-fields`을 사용하여 모든 필드 이름 목록을 가져옵니다. 이 옵션을 여러 번 지정하여 여러 필드를 설정할 수 있습니다. 참고: 언어의 경우 ISO639 언어 코드를 사용해야 합니다(예: 영어는 en, 프랑스어는 fr 등). 식별자의 경우 구문은 :option:--field` identifiers:isbn:XXXX,doi:YYYYY입니다. 불리언(예/아니요) 필드의 경우 참/거짓 또는 예/아니요를 사용합니다.

--field 옵션과 함께 사용할 수 있는 메타데이터 필드 이름 나열

EXPORT

calibredb export [options] ids


ids(쉼표로 구분된 목록)로 지정한 책을 파일 시스템으로 내보냅니다. 내보내기 작업은 책의 모든 형식, 표지, 메타데이터(OPF 파일)를 저장합니다. 책에 연결된 추가 데이터 파일도 함께 저장됩니다. id 번호는 search 명령으로 확인할 수 있습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

데이터베이스의 모든 책을 내보냅니다. ID 목록은 무시합니다.

파일 이름에 있는 모든 비영어 문자를 영어 대응 문자로 변환하도록 calibre에 지시합니다. 유니코드 파일명을 완전히 지원하지 않는 구형 파일 시스템에 저장할 때 유용합니다. 이 스위치를 지정하면 이 동작이 꺼집니다.

보통, calibre는 표지를 실제 전자책 파일과 함께 별도의 파일에 저장합니다. 이 스위치를 지정하면 이 동작이 꺼집니다.

책을 저장할 때 책과 연결된 데이터 파일도 함께 저장 이 스위치를 지정하면 이 동작이 꺼집니다.

calibre가 calibre 라이브러리에 있는 메타데이터를 가져와 저장된 파일의 메타데이터를 업데이트합니다. 디스크에 저장하는 시간이 더 걸리게 됩니다. 이 스위치를 지정하면 이 동작이 꺼집니다.

보통, calibre는 실제 전자책 파일과 함께 분리된 OPF 파일 내에 메타데이터를 기록합니다. 이 스위치를 지정하면 이 동작이 꺼집니다.

책마다 저장할 형식의 목록이며 쉼표로 구분합니다. 기본값으로 모든(all) 이용가능한 형식으로 저장됩니다.

진행 상황 보고

--replace-whitespace
공백 문자를 밑줄로 교체합니다.

모든 책을 하나의 폴더로 내보내기

저장되는 파일의 파일명과 폴더 구조를 제어하는 템플릿, 기본값 "{author_sort}/{title}/{title} - {authors}"이며 제목과 저자가 포함된 파일명을 사용해 저자별 하위 폴더에 책을 저장합니다. 사용할 수 있는 제어 항목은 다음과 같습니다: {author_sort, authors, id, isbn, languages, last_modified, pages, pubdate, publisher, rating, series, series_index, tags, timestamp, title}

날짜를 표시하는 양식. %d - 일, %b - 월, %m - 월(숫자), %Y - 년도. 기본값: %b, %Y

책을 지정한 폴더로 내보냅니다. 기본값: .

경로를 소문자로 변환합니다.

CATALOG

calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [옵션]


경로/대상 확장으로 지정된 형식으로 범주를 내보냅니다. 옵션은 생성된 범주 출력에 항목이 표시되는 방식을 제어합니다. 서로 다른 범주 형식은 서로 다른 옵션 집합을 지원합니다. 다른 옵션을 보려면 출력 파일 이름을 지정한 다음 --help 옵션을 지정하십시오.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

범주에 추가할 데이터베이스 ID의 쉼표로 구분된 목록입니다. 선언되면, :option:
`
--search`는 무시됩니다. 기본값: 모두

검색 쿼리로 결과를 필터링합니다. 검색 쿼리 의 형식은 사용자 설명서에서 검색 관련 문서를 참조하십시오. 기본값: 필터링 없음

상세한 출력 정보를 표시합니다. 디버깅 시에 유용함

EPUB 옵션

메타데이터에서 제목으로 사용되는 생성된 범주의 제목입니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

여러 저자가 있는 책의 저자 섹션에서 상호 참조를 만듭니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

변환 파이프라인의 다른 단계에서 출력을 지정된 폴더에 저장합니다. 변환 프로세스의 어느 단계에서 버그가 발생하는지 확실하지 않은 경우 유용합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

장르로 제외할 태그를 설명하는 정규식입니다. 기본값: '기본값(%d)'은 괄호로 묶인 태그를 제외합니다(예: '[Project Gutenberg]', 및 '+', 책 읽기의 기본 태그. 적용 대상: AZW3, EPUB, MOBI 출력 형식

생성된 범주에서 책을 제외하는 데 사용되는 규칙을 지정합니다. 제외 규칙의 모델은 다음 중 하나입니다. ('<rule name>','태그','<comma-separated list of tags>') 또는 ('<rule name>','<custom column>','<pattern>'). 예를 들어: (('보관된 책','#상태','보관됨'),) 맞춤 열 '상태'에서 값이 '보관됨'인 책은 제외됩니다. 여러 규칙이 정의되면 모든 규칙이 적용됩니다. 기본값: "기본값(%d)" 적용 대상: AZW3, EPUB, MOBI 출력 형식

'저자' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'책 설명' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'장르' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'최근 추가된 항목' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'시리즈' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'제목' 섹션을 범주에 포함합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

'장르' 섹션의 소스 필드입니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

설명 헤더에 삽입할 메모 텍스트가 포함된 사용자 지정 필드입니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

#<custom field>:[이전|이후]:[참|거짓] 지정: <custom field> 책 설명과 병합할 메모가 포함된 사용자 지정 필드 [이전|이후] 책 설명에 대한 책 설명 배치 [참|거짓] - 메모와 책 설명사이에 가로줄을 삽입합니다. 기본값: '::' 적용 대상: AZW3, EPUB, MOBI 출력 형식

--output-profile
출력 프로필을 지정합니다. 경우에 따라 장치에 맞게 카탈로그를 최적화하려면 출력 프로필이 필요합니다. 예를 들어 'kindle' 또는 'kindle_dx'를 사용하면 섹션과 기사로 구성된 구조화된 목차가 만들어집니다. 기본값: 'None' 적용 대상: AZW3, EPUB, MOBI 출력 형식

--prefix-rules
읽은 책, 위시리스트 항목 및 기타 사용자 지정 접두사를 나타내는 접두사를 포함하는 데 사용되는 규칙을 지정합니다. 접두사 규칙의 모델은 ('<rule name>','<source field>','<pattern>','<prefix>')입니다. 여러 규칙이 정의된 경우 첫 번째 일치 규칙이 사용됩니다. 기본값: "기본값(%d)" 적용 대상: AZW3, EPUB, MOBI 출력 형식

GUI 범주 빌더로 작성된 명명된 프리셋을 사용합니다. 프리셋은 범주 작성을 위한 모든 설정을 지정합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

범주의 책 표지에 대한 힌트 크기(인치)입니다. 범위: 1.0 - 2.0 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

범주 생성 시 기존 표지를 교체합니다. 기본값: '기본값(%d)' 적용 대상: AZW3, EPUB, MOBI 출력 형식

SAVED_SEARCHES

calibredb saved_searches [options] [list|add|remove]


Manage the saved searches stored in this database. If you try to add a query with a name that already exists, it will be replaced.

Syntax for listing, the default action:

calibredb saved_searches list

Syntax for adding:

calibredb saved_searches add search_name search_expression

Syntax for removing:

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"

이 열의 데이터가 해석되는 방식을 사용자 지정하기 위한 옵션 사전입니다. 이것은 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이 표시됩니다.

이 열은 태그와 유사한 데이터(즉, 쉼표로 구분된 여러 값)를 저장합니다. datatype이 text일 때만 적용됩니다.

CUSTOM_COLUMNS

calibredb custom_columns [옵션]


사용 가능한 사용자 지정 열을 나열합니다. 열 레이블과 ID를 표시합니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

각 열에 대한 상세 정보를 표시합니다.

REMOVE_CUSTOM_COLUMN

calibredb remove_custom_column [options] label


label로 식별되는 사용자 지정 열을 제거합니다. 사용 가능한 열은 custom_columns 명령으로 확인할 수 있습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

확인을 다시 묻지 않음

SET_CUSTOM

calibredb set_custom [options] column id value


id로 식별되는 책의 사용자 지정 열 값 설정. ID 목록은 search 명령으로 확인할 수 있습니다. 사용자 지정 열 이름 목록은 custom_columns 명령으로 확인할 수 있습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

열이 여러 값을 저장하는 경우 기존 값을 대체하지 않고 지정한 값을 덧붙입니다.

RESTORE_DATABASE

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.

The exit status is 0 if the restore succeeded, 1 if it failed completely and 2 if the database was restored but some books or other data could not be.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

실제로 복구를 수행합니다. 이 옵션을 지정하지 않으면 명령이 실행되지 않습니다.

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로 출력

무시할 확장자의 쉼표로 구분된 목록. 기본값: 전체

무시할 이름의 쉼표로 구분된 목록. 기본값: 전체

쉼표로 구분된 보고서 목록입니다. 기본값: all

전체 텍스트 검색 데이터베이스를 vacuum 합니다. 데이터베이스 크기에 따라 매우 느리고 메모리를 많이 사용할 수 있습니다.

LIST_CATEGORIES

calibredb list_categories [options]


데이터베이스의 범주 정보에 대한 보고서를 생성합니다. 이 정보는 태그 브라우저에 표시되는 내용과 같습니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

범주 조회 이름의 쉼표로 구분된 목록, 기본값: 모두

CSV로 출력

생성할 CSV 파일 유형입니다. 선택 가능 값: excel, excel-tab, unix

카테고리 내 각 항목의 개수 대신, 해당 카테고리에 속한 항목의 총 개수만 출력하십시오

출력에서 한 줄의 최대 너비입니다. 기본값은 화면 크기 자동 감지입니다.

BACKUP_METADATA

calibredb backup_metadata [options]


데이터베이스에 저장된 메타데이터를 각 책 폴더의 개별 OPF 파일로 백업합니다. 보통은 자동으로 수행되지만, --all 옵션을 사용하면 이 명령으로 OPF 파일을 강제로 다시 생성할 수 있습니다.

일반적으로는 이렇게 할 필요가 없습니다. 메타데이터가 변경될 때마다 OPF 파일이 자동으로 백업되기 때문입니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

기본적으로 이 명령은 오래된 OPF 파일을 가진 책에만 동작합니다. 이 옵션을 사용하면 모든 책에 대해 동작합니다.

CLONE

calibredb clone path/to/new/library


현재 라이브러리의 복제본을 만듭니다. 이 명령은 현재 라이브러리와 동일한 사용자 지정 열, 가상 라이브러리 및 기타 설정을 가진 새 빈 라이브러리를 만듭니다.

복제된 라이브러리에는 책이 들어 있지 않습니다. 책까지 포함한 전체 복사본을 만들고 싶다면 파일 시스템 도구를 사용해 라이브러리 폴더를 그대로 복사하십시오.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

EMBED_METADATA

calibredb embed_metadata [options] book_id


calibre 데이터베이스의 메타데이터를 calibre 라이브러리에 저장된 실제 책 파일에 반영합니다. 일반적으로 메타데이터는 calibre에서 파일을 내보낼 때만 갱신되므로, 파일 자체를 제자리에서 갱신하고 싶을 때 이 명령이 유용합니다. 파일 형식마다 지원하는 메타데이터의 양이 다르다는 점에 유의하십시오. 모든 책의 메타데이터를 갱신하려면 book_id에 특수 값 'all'을 사용할 수 있습니다. 공백으로 구분한 여러 책 ID와 하이픈으로 구분한 ID 범위도 지정할 수 있습니다. 예: calibredb embed_metadata 1 2 10-15 23

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

지정한 형식의 파일에 대해서만 메타데이터를 갱신합니다. 여러 형식을 지정하려면 이 옵션을 여러 번 사용하십시오. 기본적으로는 모든 형식이 갱신됩니다.

SEARCH

calibredb search [옵션] search expression


지정된 검색어에 대해 라이브러리를 검색하여 검색 표현식과 일치하는 책 ID의 쉼표로 구분된 목록을 반환합니다. 출력 형식은 ID 목록을 입력으로 허용하는 다른 명령에 입력하는 데 유용합니다.

검색 표현식은 calibre의 강력한 검색어 언어의 모든 것이 될 수 있습니다. 예: calibredb search author:asimov 'title:"i robot"'

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

리턴할 결과의 최대 갯수. 기본값은 모든 결과입니다.

FTS_INDEX

calibredb fts_index [options] enable/disable/status/reindex


전체 텍스트 검색 색인 처리 과정을 제어합니다.

이 라이브러리에서 FTS 색인을 켭니다
이 라이브러리에서 FTS 색인을 끕니다
현재 색인 상태를 표시합니다
특정 책 또는 전체 라이브러리를 다시 색인할 때 사용합니다. 특정 책만 다시 색인하려면 reindex 명령 뒤에 추가 인수로 책 ID를 지정하십시오. 책 ID를 지정하지 않으면 전체 라이브러리를 다시 색인합니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

색인 속도입니다. fast는 컴퓨터 자원을 모두 사용해 빠르게 색인하고, slow는 자원을 덜 쓰는 색인입니다. 이 속도 설정은 매번 실행 후 다시 slow로 초기화됩니다.

모든 책이 인덱싱될 때까지 주기적으로 진행 상황을 표시하며 대기

FTS_SEARCH

calibredb fts_search [옵션] 검색 표현식


전체 라이브러리 또는 그 일부에서 전체 텍스트 검색을 수행합니다.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

관련 단어가 아닌 정확한 단어만 일치시킵니다. 따라서 correction은 correcting과 일치하지 않습니다.

각 일치 항목 주변의 텍스트 스니펫을 포함합니다. 참고로, 이 기능은 검색 속도를 훨씬 느리게 만듭니다.

검색을 허용하기 전에 인덱싱되어야 하는 라이브러리 비율, 기본값 90

스니펫 내에서 일치하는 단어의 끝을 나타내는 데 사용되는 마커임

스니펫 내에서 일치하는 단어의 시작을 나타내는 데 사용되는 마커임

--output-format
검색 결과를 출력할 형식입니다. 일반 텍스트는 "text", JSON 출력은 "json"을 사용합니다.

검색할 책을 검색식 또는 ID로 제한합니다. 예: IDs로 제한하려면 ids:1,2,3, 태그 foo가 있는 책으로 제한하려면 search:tag:foo.

NOTES

calibredb notes [options] [list|search|show|set|remove]


Manage the notes attached to items such as authors, series, tags and publishers. FIELD is the lookup name of the field, for example: authors, series, tags, publisher or #mycolumn. ITEM is the name of the item, for example the name of an author. Items are matched case insensitively.

List the items that have notes, optionally only those in the specified field. This is the default action:

calibredb notes list [FIELD]

Search the text of notes using the same SQLite full text search syntax as the Browse notes tool in calibre. Print the field, item name and an excerpt for each match. Use --field to search only the notes in a particular field:

calibredb notes search "search expression" calibredb notes search --field authors "search expression"

Print the note for an item as Markdown formatted text, or with --as-html as an HTML document with any images embedded, suitable for use with set:

calibredb notes show FIELD ITEM

Replace the note for an item with the contents of an HTML file. Use - to read the HTML from standard input. Images embedded as base64-encoded data: URLs are added to the note for both local and remote libraries. When using a local library and reading from a file, images referenced by paths relative to the file are added as well:

calibredb notes set FIELD ITEM FILE

Remove the note for an item:

calibredb notes remove FIELD ITEM

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

When showing a note, output it as HTML instead of Markdown formatted text

When searching notes, restrict the search to this field, for example: authors, tags or #mycolumn

ITEMS

calibredb items [options] (rename|remove) FIELD ITEM ...


Rename or remove items such as authors, tags, series and publishers in all books, the same as the Manage authors, tags, etc. actions in the calibre interface. FIELD is the lookup name of the field, for example: authors, tags, series, publisher or #mycolumn. Items are matched case insensitively.

Rename an item. If an item named NEW_NAME already exists, the two items are merged. For fields that contain multiple values, NEW_NAME can contain more than one value, separated by the separator for the field, for example a comma for tags. The item is then replaced by all the values:

calibredb items rename FIELD ITEM NEW_NAME

Remove one or more items from all books. Authors cannot be removed:

calibredb items remove FIELD ITEM [ITEM ...]

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Only change books that match the specified search expression, for example: tags:"=Fiction"

VIRTUAL_LIBRARIES

calibredb virtual_libraries [options] [list|add|rename|remove]


Manage the Virtual libraries of this library. A Virtual library is a search that behaves as though the library contains only the books it matches. To list or search the books in a Virtual library, use: calibredb search 'vl:"name"'

List the Virtual libraries, with their searches and number of books. This is the default action:

calibredb virtual_libraries list

Create a Virtual library from a search:

calibredb virtual_libraries add name search_expression

Rename a Virtual library:

calibredb virtual_libraries rename name new_name

Remove Virtual libraries, the books in them are not changed:

calibredb virtual_libraries remove name ...

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Generate output in JSON format, which is more suitable for machine parsing

Replace the search of an existing Virtual library with the same name when adding

ANNOTATIONS

calibredb annotations [options] [list|search|export|import|remove]


Manage the annotations, that is the highlights and bookmarks, of books, as created in the calibre E-book viewer or synced from other applications.

List the annotations, with their ids. This is the default action:

calibredb annotations list

Search highlighted text, annotation notes and bookmark titles using the same SQLite full text search syntax as the Browse annotations tool. Results are ordered by relevance and include annotation ids, book titles and matching excerpts. Use --search to restrict the books, --type to restrict the annotation type, --user-type and --annotation-user to restrict the user, --no-stemming to match exact word forms, or --format json for a JSON array of results including the annotation data and excerpts:

calibredb annotations search "search expression"

Export the annotations as plain text, Markdown or JSON, grouped by book. The JSON is the same calibre annotation collection as created by the Export button in the Browse annotations tool:

calibredb annotations export

Import a calibre annotation collection exported as JSON by this command or the Browse annotations tool. The collection must contain annotations from only one book. BOOK_ID is the destination book id, not the id stored in the file. Only the annotations of the format FORMAT are imported, annotations of other formats are skipped. FORMAT must exist in the destination book. Use the same edition of the book so positions match:

calibredb annotations import BOOK_ID FORMAT FILE

Use - for FILE to read from standard input. The entire collection is validated before importing. Annotations are merged with existing ones using the viewer's rules: highlights are matched by UUID and bookmarks by title, and the newer timestamp wins. Repeated imports do not create duplicates. Unrelated annotations and reading positions are preserved.

By default annotations are imported into those of the calibre E-book viewer. Use --user-type web --annotation-user USER to import them into those of a Content server user instead. Exported collections record the user the annotations belong to, and if a collection contains annotations of more than one user, it is rejected. Use the --user-type and --annotation-user options when exporting, to export the annotations of a single user.

Permanently remove the annotations with the specified ids, as shown by list:

calibredb annotations remove ID ...

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Only list, search or export the annotations of the specified user. For import, the Content server user to import the annotations for, required with --user-type web. Note that this can be any user, not just the one used to connect to a remote library.

The export format, one of: text, markdown, json. For search, text or json. Default is: text

For search, match exact word forms instead of word stems

Only list, search or export the annotations of books matching the specified book search query, for example: --search "series:Foundation"

Only list, search or export annotations of the specified type, one of: highlight, bookmark

Only list, search or export the annotations of the specified type of user. For import, the type of user to import the annotations for, the calibre E-book viewer (local) or a Content server user (web). Default for import is local.

TRASH

calibredb trash [options] (list|restore|delete|empty) [ids]


Manage the books and formats that have been removed and placed in the trash bin. Entries in the trash bin are permanently deleted automatically after some days. ids is a comma separated list of book ids, as for the remove command, for example: 23,34,57-85 (when specifying a range, the last number in the range is not included).

List the removed books and formats, most recently removed first, with the times they were removed in local time. Removed formats of books that no longer exist are marked as not restorable, they can only be deleted. With --for-machine, the times are in UTC:

calibredb trash list

Restore removed books, or with --formats, the removed formats of books:

calibredb trash restore ids

Permanently delete entries from the trash bin:

calibredb trash delete ids

Permanently delete everything in the trash bin:

calibredb trash empty

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Generate output for the list action in JSON format, which is more suitable for machine parsing

Act on the removed formats of the specified books, instead of on removed books

DATA_FILES

calibredb data_files [options] (list|add|get|rename|remove) BOOK_ID ...


Manage the extra data files associated with a book, in local or remote libraries. Names are relative to the book's data directory. Use / for subdirectories, is also accepted. Files whose names contain a are listed, but cannot otherwise be managed. E-book formats, covers and metadata.opf cannot be accessed with this command. Remote libraries require an account with write access, as for other management commands, and do not support accounts with per-library search restrictions.

List file names, sizes in bytes and modification times (seconds since the Unix epoch). Use --for-machine for JSON output:

calibredb data_files list BOOK_ID

Add a file, using its basename, or --name to specify a name or subdirectory. Existing files are not replaced unless --replace is specified. This is also available through add_format --as-extra-data-file:

calibredb data_files add BOOK_ID FILE

Save one data file to --output on the local machine. Existing output files are not replaced unless --replace is specified:

calibredb data_files get BOOK_ID NAME --output FILE

Rename a file. Existing destinations are not replaced unless --replace is set:

calibredb data_files rename BOOK_ID NAME NEW_NAME

Remove a file to the operating system's recycle bin. With --permanent, delete it permanently instead. For remote libraries this happens on the server:

calibredb data_files remove BOOK_ID NAME

Directories left empty by rename and remove are deleted. With remote libraries, each file is transferred in a single request, so very large files need enough memory on both the client and the server, and uploads are limited by the maximum request size of the server.

calibredb에 공백이 포함된 인수를 전달할 때는 항상 인수를 따옴표로 묶으십시오. 예: "/some path/with spaces"

Output the list of files as JSON

Name to use for the added file, relative to the data directory

Local destination for the get action

Permanently delete the data file instead of using the recycle bin

Allow replacing existing files when adding, getting or renaming

Author

Kovid Goyal

Copyright

Kovid Goyal

11월 06, 2026 9.18.0