CALIBREDB(1) | calibre | CALIBREDB(1) |
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 옵션으로 전달하십시오. 자세한 내용과 예시는 해당 옵션 설명서를 참조하십시오.
calibredb list [options]
캘리버 데이터베이스에 등록되어 있는 책들의 목록을 표시합니다.
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 [옵션] 파일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"
Options to control the adding of books from folders. By default only files that have extensions of known e-book file types are added.
calibredb remove ids
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"
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). 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"
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"
`--search`는 무시됩니다. 기본값: 모두
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"
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"
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"
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"
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"
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"
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"
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.
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_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"
Kovid Goyal
Kovid Goyal
2월 17, 2023 | 6.13.0 |