table of contents
- NAME
- GLOBĀLIE IESTATĪJUMI
- LIST
- ADD
- 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
- NOTES
- ITEMS
- VIRTUAL_LIBRARIES
- ANNOTATIONS
- TRASH
- DATA_FILES
- Author
- Copyright
- trixie 8.5.0+ds-1+deb13u3
- trixie-backports 8.16.2+ds+~0.10.5-3~bpo13+1
- testing 9.18.0+ds+~1.1.2-1
- unstable 9.18.0+ds+~1.1.2-1
- العربية
- български
- català (ca)
- čeština
- dansk
- Deutsch
- Ελληνικά
- English
- español
- eesti
- euskara
- فارسی
- suomi
- français
- galego
- עברית
- hrvatski
- magyar
- íslenska
- italiano
- 日本語
- ಕನ್ನಡ
- 한국어
- lietuvių
- latviešu
- मराठी
- Melayu
- norsk bokmål
- Nederlands
- polski
- português (pt)
- português (pt-BR)
- română
- русский
- slovenčina
- slovenščina
- српски
- srpskohrvatski
- svenska
- Türkçe
- українська
- Tiếng Việt
- 中文 (zh-CN)
- 繁體中文 (zh-HK)
- 繁體中文 (zh-TW)
| CALIBREDB(1) | calibre | CALIBREDB(1) |
NAME¶
calibredb - calibredb
calibredb komanda [opcijas] [argumenti]
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.
- GLOBĀLIE IESTATĪJUMI
- list
- add
- •
- PIEVIENOT NO MAPĒM
- remove
- add_format
- remove_format
- show_metadata
- set_metadata
- export
- catalog
- •
- EPUB OPCIJAS
- 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
GLOBĀLIE IESTATĪJUMI¶
- --help, -h
- parādīt šo palīdzības paziņojumu un iziet
- --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
- Parole savienojumam ar calibre satura serveri. Lai nolasītu paroli no standarta ievades, izmantojiet īpašo vērtību: <stdin>. Lai nolasītu paroli no faila, izmantojiet: <f:/path/to/file> (t.i., <f: seko pilns ceļš uz failu un beidzas ar >). Nepieciešamas iepriekš norādītās leņķa iekavas, neaizmirstiet izvairīties no tām vai izmantot pēdiņas savam apvalkam.
- --timeout
- Pārtraukums dažu sekunžu laikā, kad tīklā tiek izveidots savienojums ar calibre bibliotēku. Noklusējums ir divas minūtes.
- --username
- Lietotājvārds, lai izveidotu savienojumu ar calibre satura serveri
- --version
- parādīt programmas versijas numuru un iziet
LIST¶
calibredb list [options]
Pieejamais grāmatu saraksts calibre datu bāzē.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --ascending
- Kārtot rezultātus augošā secībā
- --fields, -f
- Lauki, kas jāuzrāda, iekļaujot grāmatas datu bāzē. Lauku sarakstu jāatdala ar komatu. Pieejamie lauki:author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid Noklusējums: title,authors. Īpašo lauku "all" , var izmantot, lai atlasītu visus laukus. Papildus iepriekš minētajiem laukiem, pielāgotie lauki ir pieejami arī kā * field_name, piemēram, pielāgotajam laukam #rating, izmantojiet nosaukumu: *rating
- --for-machine
- Veido izvadi JSON formātā, kas ir vairāk piemērots programmas šķirošanai. Ignorē līniju platumu un atdalītāju.
- --limit
- Maksimālais attēlojamo rezultātu skaits. Noklusētais: visi
- --line-width, -w
- Maksimālais rindas platums izvadē. Noklusētais - mēģināt noteikt ekrāna izmērus.
- --prefix
- Prefikss visiem failu ceļiem. Pēc noklusējuma absolūtais ceļš uz bibliotēkas mapi.
- --search, -s
- Filtrēt rezultātus pēc meklēšanas. Par meklēšanas formātu, lūdzu, skatiet lietotāja rokasgrāmatā pieejamo dokumentāciju. Pēc noklusējuma nefiltrē.
- --separator
- Teksts, ar kuru atdalīta laukus. Pēc noklusējuma tā ir atstarpe.
- --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. 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
- --template
- The template to run if "template" is in the field list. Note that templates are ignored while connecting to a calibre server. Default: None
- --template_file, -t
- Ceļš uz failu, kas satur veidni, kuru palaist, ja lauku sarakstā ir "template". Noklusējuma iestatījums: Nav .
- --template_heading
- Šablona kolonnas virsraksts. Noklusējuma iestatījums: template. Šī opcija tiek ignorēta, ja ir iestatīta opcija --for-machine.
ADD¶
calibredb pievienot [opcijas] failu1 failu2 failu3 ...
Pievienojiet norādītos failus kā grāmatas datu bāzei. Varat arī norādīt mapes, skatiet tālāk norādītās ar mapi saistītās opcijas.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- Ievadiet pievienotās(-o) grāmatas(-u) autoru(s)
- --automerge, -m
- Ja tiek atrastas grāmatas ar līdzīgiem nosaukumiem un autoriem, automātiski sapludiniet ienākošos formātus (failus) esošajos grāmatu ierakstos. Vērtība "ignorēt" nozīmē, ka dublētie formāti tiek atmesti. "Pārrakstīt" vērtība nozīmē, ka dublētie formāti bibliotēkā tiek pārrakstīti ar tikko pievienotajiem failiem. Vērtība "new_record" nozīmē, ka dublēti formāti tiek ievietoti jaunā uzskaites ierakstā.
- --cover, -c
- Ceļš līdz pievienotās grāmatas vākam
- --duplicates, -d
- Pievienojiet grāmatas datu bāzei pat tad, ja tās jau pastāv. Salīdzinājums tiek veikts, pamatojoties uz grāmatu nosaukumiem un autoriem. Ņemiet vērā, ka opcijai --automerge ir prioritāte.
- --empty, -e
- Pievienot tukšu grāmatu (grāmatu bez formātiem)
- --identifier, -I
- Iestatiet šīs grāmatas identifikatorus, piemēram, -I asin:XXX -I isbn:YYY
- --isbn, -i
- Ievadiet pievienotās(-o) grāmatas(-u) ISBN
- --languages, -l
- Ar komatu atdalīts valodu saraksts (vislabāk izmantot ISO639 valodu kodu, lai gan var būt atpazīti arī daži parasti valodu nosaukumi)
- --series, -s
- Ievadiet pievienotās(-o) grāmatas(-u) sērijas
- --series-index, -S
- Ievadiet pievienotās(-o) grāmatas(-u) sēriju numurus
- Ievadiet pievienotās(-o) grāmatas(-u) birkas
- --title, -t
- Ievadiet pievienotās(-o) grāmatas(-u) nosaukumu
PIEVIENOT NO MAPĒM¶
Opcija, lai kontrolētu grāmatu pievienošanu no mapēm. Pēc noklusējuma tiek pievienoti tikai tie faili, kuriem ir zināmi e-grāmatu failu tipu paplašinājumi.
- --add
- Faila nosaukuma (glob) šablons, faili, kas atbilst šim modelim, tiks pievienoti, skenējot mapes, lai atrastu failus, pat ja tiem nav zināms e-grāmatas faila veids. Var norādīt vairākas reizes vairākiem modeļiem.
- --ignore
- Faila nosaukuma (glob) šablons, faili, kas atbilst šim modelim, tiks ignorēti, pārbaudot mapes, lai meklētu failus. Var norādīt vairākas reizes vairākiem modeļiem. Piemēram: *.pdf ignorēs visus PDF failus
- --one-book-per-directory, -1
- Pieņemsim, ka katrā mapē ir tikai viena grāmata un visi tajā esošie faili ir dažādi šīs grāmatas e-grāmatu formāti
- --recurse, -r
- Apstrādāt mapes rekursīvi
REMOVE¶
calibredb remove ids
Izņemt no datubāzes grāmatas ar noteiktu id. Id jābūt ar komatu atdalītiem id numuru sarakstam (id numurus varat iegūt, izmantojot meklēšanas komandu). Piemēram, 23,34,57-85 (norādot diapazonu, pēdējais diapazona numurs nav iekļauts).
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --permanent
- Do not use the trash bin
ADD_FORMAT¶
calibredb add_format [options] id ebook_file
Pievienojiet e-grāmatu, ebook_file loģiskai grāmatai, kas identificē pieejamos id formātus. Id var iegūt, izmantojot komandu "Meklēt". Ja formāts jau pastāv, to aizstāj, ja vien nav norādīta opcija "Neaizstāt".
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --as-extra-data-file
- Pievienot grāmatai kā papildu datu failu, nevis e-grāmatas formātu
- --dont-replace
- Neaizvietot formātu, ja tāds jau pastāv
REMOVE_FORMAT¶
calibredb remove_format [opcijas] id fmt
Noņemt formātu fmt no loģiskās grāmatas, kas identificēta ar id. Jūs varat iegūt id, izmantojot meklēšanas komandu. Fmt jābūt faila paplašinājumam, piemēram, LRF vai TXT vai EPUB. Ja loģiskajai grāmatai nav pieejams fmt, nedariet neko.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
SHOW_METADATA¶
calibredb show_metadata [opcijas] id
Parāda grāmatas metadatus, kas glabājas calibre datu bāzē identificēts ar id. id ir id numurs no meklēšanas komandas.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --as-opf
- Drukāt datus OPF formā (XML)
SET_METADATA¶
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --field, -f
- Lauks, kas jāiestata. Formāts ir field_name: vērtība, piemēram: --field tags:tag1,tag2. Izmantojiet --list-fields, lai iegūtu sarakstu ar visiem lauku nosaukumiem. Varat norādīt šo opciju vairākas reizes, lai iestatītu vairākus laukus. Piezīme: Valodai jums jāizmanto ISO639 valodu kods (piemēram, angļu valodā en, franču valodā fr utt.). Id sintakse ir --field identifiers:isbn:XXXX,doi:YYYYY. Loģiskiem (jā/nē) laukiem tiek izmantoti true un false vai yes un no.
- --list-fields, -l
- Ar --field papildiespēju izmantojamo metadatu lauku nosaukumu saraksts
EXPORT¶
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --all
- Eksportēt visas datubāzē esošās grāmatas, neņemot vērā id sarakstu,
- --dont-asciiize
- Lieciet Calibre konvertēt visas ne-angļu rakstzīmes failu nosaukumos ar angļu valodas ekvivalentiem. Tas ir noderīgi, ja tiek saglabāts vecā failu sistēmā, kas pilnībā neatbalsta Unicode failu nosaukumus. Atzīmējot šo slēdzi, darbība tiks izslēgta.
- --dont-save-cover
- Parasti calibre saglabā vāku atsevišķā failā kopā ar faktiskajiem e-grāmatu failiem. Atzīmējot šo slēdzi, darbība tiks izslēgta.
- --dont-save-extra-files
- Saglabājot grāmatu, saglabāt visus ar grāmatu saistītos datu failus. Atzīmējot šo slēdzi, darbība tiks izslēgta.
- --dont-update-metadata
- Parasti Calibre atjauninās metadatus saglabātajās datnēs no tā, kas atrodas Calibre bibliotēkā. Padara saglabāšanu uz diska lēnāku. Atzīmējot šo slēdzi, darbība tiks izslēgta.
- --dont-write-opf
- Parasti Calibre raksta metadatus atsevišķā OPF datnē kopā ar citām e-grāmatas datnēm. Atzīmējot šo slēdzi, darbība tiks izslēgta.
- --formats
- Ar komatu atdalītu formātu saraksts katras grāmatas saglabāšanai. Pēc noklusējuma tiek saglabāti visi pieejamie formāti.
- --progress
- Ziņojuma progress
- --replace-whitespace
- Aizvietot atstarpes ar apakšsvītrām
- --single-dir
- Eksportējiet visas grāmatas vienā mapē
- --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, pages, pubdate, publisher, rating, series, series_index, tags, timestamp, title}
- --timefmt
- Datumu attēlošanas formāts. %d - diena, %b - mēnesis, %m - mēneša kārtas skaitlis, %Y - gads. Noklusētais ir: %b, %Y
- --to-dir
- Eksportējiet grāmatas uz norādīto mapi. Noklusējums ir .
- --to-lowercase
- Pārvērst ceļu nosaukumus uz apakšējo reģistru
CATALOG¶
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --ids, -i
- Ar komatu atdalīts ID saraksts datu bāzes katalogā.
Ja uzrādīts, :option:
`
--mekl`ēšana tiek ignorēta. Noklusējums: visas
- --search, -s
- Filtrēt rezultātus pēc meklēšanas. Meklēšanas formātu, skatiet Lietotāja rokasgrāmatā, ar meklēšanu saistīto dokumentāciju. Noklusējums: bez filtrēšanas
- --verbose, -v
- Parādīt detalizētu izejas informāciju. Noderīga atkļūdošanai
EPUB OPCIJAS¶
- --catalog-title
- Ģenerētā kataloga nosaukums, kas tiek izmantots kā metadatu virsraksts. Noklusējums: 'My Books' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --cross-reference-authors
- Iekšējās atsauces var veidot ar vairāku autoru grāmatām, sadaļā autori. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --debug-pipeline
- Save the output from different stages of the conversion pipeline to the specified folder. Useful if you are unsure at which stage of the conversion process a bug is occurring. Default: 'None' Applies to: AZW3, EPUB, MOBI output formats
- --exclude-genre
- Regulārā izteiksme apraksta birkas, kuras izslēgt kā žanrus. Noklusējums: '[.+]|^+$' izslēdz iespiestās birkas, piem., "[Project Gutenberg]" un "+" - noklusējuma birkas lasītām grāmatām. Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --exclusion-rules
- Norāda noteikumus, kurus izmanto, lai izslēgtu grāmatas no izveidotā kataloga. Izņēmuma noteikumu modelis ir vai nu ('<rule name>','Tags','<comma-separated list of tags>') or ('<rule name>','<custom column>','<pattern>'). Piemēram: (('Archived books','#status','Archived'),) izslēgs grāmatu ar vērtību "arhivēts" pielāgotajā slejā "statuss". Ja ir definēti vairāki noteikumi, tiks piemēroti visi noteikumi. Noklusējums: "(('Catalogs','Tags','Catalog'),)" Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-authors
- Sadaļu "Autori" iekļaut katalogā.. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-descriptions
- Iekļaut sadaļu "Apraksti" katalogā. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-genres
- Iekļaut sadaļu "Žanri" katalogā. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-recently-added
- Iekļaut sadaļu "Nesen pievienoti" katalogā. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-series
- Iekļaut sadaļu "Sērija" katalogā. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --generate-titles
- Iekļaut sadaļu "Nosaukums" katalogā. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --genre-source-field
- Avota lauks sadaļā "Žanri". Noklusējums: 'Birkas' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --header-note-source-field
- Pielāgots lauks, kurā ir piezīmju teksts, lai ievietotu Apraksta virsrakstā. Noklusējums: '' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --merge-comments-rule
- #<custom field>:[before|after]:[True|False] specifying: <custom field> Custom field containing notes to merge with comments [before|after] Placement of notes with respect to comments [True|False] - A horizontal rule is inserted between notes and comments Default: '::' Applies to: AZW3, EPUB, MOBI output formats
- --output-profile
- Norāda izvades profilu. Dažos gadījumos, lai optimizētu ierīces katalogu, ir nepieciešams izvades profils. Piemēram, "kindle" vai "kindle_dx" izveido strukturētu Saturu rādītāju ar sadaļām un rakstiem. Noklusējums: 'None' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --prefix-rules
- Norāda noteikumus, ko lieto, lai iekļautu prefiksus, kas norāda lasīšanas grāmatas, vēlmju sarakstus un citus lietotāja prefiksus. Prefiksa noteikuma modelis ir ('<rule name>','<source field>','<pattern>','<prefix>'). Ja ir noteikti vairāki noteikumi, tiks izmantots pirmais atbilstības noteikums. Noklusējums: "(('Read books','tags','+','✓'),('Wishlist item','tags','Wishlist','×'))" Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --preset
- Izmanto nosaukto sākotnējo iestatījumu, kas izveidots ar GUI kataloga veidotāju. Iestatījums nosaka visus kataloga izveides iestatījumus. Noklusējums: 'None' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --thumb-width
- Izmēra norāde (collas) grāmatu vākiem katalogā.. Diapazons: 1.0 - 2.0 Noklusējums: '1.0' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
- --use-existing-cover
- Aizstāj esošo vāciņu, kad tiek ģenerēts katalogs. Noklusējums: 'False' Attiecas uz: AZW3, EPUB, MOBI izejas formātiem
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
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
ADD_CUSTOM_COLUMN¶
calibredb add_custom_column [opcijas] datu tipa etiķetes nosaukums
Izveido pielāgotu kolonnu. Etiķete ir datora kolonnas nosaukums. Nedrīkst saturēt atstarpes vai kolu. Kolonnas nosaukumam jābūt saprotamam. datu tips ir viens no: bool, comments, composite, datetime, enumeration, float, int, rating, series, text
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --display
- Opcija, kas pielāgo, kā tiks šajā slejā interpretēta datu vārdnīca. Tā ir JSON virkne. Par slejas numerāciju, izmantojiet --display"{\ "enum_values\ ":[\ "val1\ ", \ "val2\ "]}" Ir daudzas iespējas, kā var parādīt ekrānā mainīgos. Šo sleju tipa opcijas ir šādas: salikts: composite_template, composite_sort, make_category, contains_html, use_decorations datums un laiks: date_format uzskaitījums: enum_values, enum_colors, use_decorations skaitlis vai ar peldošo komatu: number_format teksts: is_names, use_decorations Labākais veids, kā atrast labāko kombināciju ir izveidot pielāgotu attiecīga GUI tipa sleju, tad apskatīt OPF grāmatas dublējumu (nodrošiniet, ka jaunais OPF ir izveidots pēc slejas pievienošanas). Jūs redzēsiet JSON jauno OPF sleju kā "parādītu".
- --is-multiple
- Šī sleja saglabā birkas kā datus (piemēram, vairākus ar komatiem atdalītas vērtības). Piemēro tikai tad, ja datu tips ir teksts.
CUSTOM_COLUMNS¶
calibredb custom_columns [options]
Pieejamais pielāgoto sleju saraksts. Parāda sleju etiķetes un id.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --details, -d
- Rādīt katras slejas detaļas.
REMOVE_CUSTOM_COLUMN¶
calibredb remove_custom_column [options] label
Noņemt pielāgoto sleju identificētās etiķetes. Jūs varat redzēt pieejamās slejas ar custom_columns komandu.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --force, -f
- Nepieprasīt apstiprinājumu
SET_CUSTOM¶
calibredb set_custom [options] column id value
Iestatiet pielāgotās slejas vērtību grāmatai, kas identificēta ar id. Jūs varat iegūt id sarakstu, izmantojot meklēšanas komandu. Jūs varat saņemt pielāgoto sleju nosaukumu sarakstu, izmantojot pielāgotās slejas komandu.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --append, -a
- Ja slejā tiek saglabātas vairākas vērtības, pievienot tām esošās vērtības, nevis aizstāt tās.
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --really-do-it, -r
- Izpildīt atgūšanu. Šī komanda netiks izpildīta, kamēr netiks norādīta šī papildiespēja.
CHECK_LIBRARY¶
calibredb check_library [opcijas]
Veikt dažas pārbaudes, kas pārstāv bibliotēka sistēmu. Ziņojumi ir invalid_titles, extra_titles, invalid_authors, extra_authors, missing_formats, extra_formats, extra_files, missing_covers, extra_covers, malformed_formats, malformed_paths, failed_folders
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --csv, -c
- Izvade CSV
- --ignore_extensions, -e
- Ar komatu atdalītu vērā neņemamo paplašinājumu saraksts. Noklusētais: visi
- --ignore_names, -n
- Ar komatu atdalītu vērā neņemamo nosaukumu saraksts. Noklusētais: visas
- --report, -r
- Ar komatu atdalītu atskaišu saraksts. Noklusētais: visas
- --vacuum-fts-db
- Iztīriet pilna teksta meklēšanas datu bāzi. Tas var būt ļoti lēns un aizņem daudz atmiņas atkarībā no datu bāzes lieluma.
LIST_CATEGORIES¶
calibredb list_categories [opcijas]
Izveidojiet pārskatu par kategorijas informāciju datubāzē. Šī informācija ir līdzvērtīga tai, kas tiek rādīta birku pārlūkā.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --categories, -r
- Ar komatu atdalīts kategoriju nosaukumu meklēšanas saraksts. Noklusējums: visas
- --csv, -c
- Izvade CSV
- --dialect
- CSV faila izveidošanas veids. Izvēle: excel, excel-tab, unix
- --item_count, -i
- Izvadīt tikai kategoriju vienību skaitu, nevis skaita vienumu kategorijā
- --width, -w
- Maksimālais rindas platums izvadē. Noklusētais - mēģināt noteikt ekrāna izmērus.
BACKUP_METADATA¶
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --all
- Parasti šī komanda darbojas tikai ar grāmatām ar novecojušām OPF datnēm. Šī papildiespēja liek tai darboties ar visām grāmatām.
CLONE¶
calibredb clone path/to/new/library
Izveidot tekošās bibliotēkas klonu. Tādējādi tiek izveidota jauna, tukša bibliotēka, kurā ir visas pielāgotās kolonnas, virtuālās bibliotēkas un citi iestatījumi, kā pašreizējā bibliotēkā.
Klonēta bibliotēka nesatur grāmatas. Ja vēlaties izveidot pilnu dublikātu, tostarp visas grāmatas, tad izmantojiet failu sistēmas instrumentus, lai kopētu bibliotēkas mapi.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
EMBED_METADATA¶
calibredb embed_metadata [opcijas] book_id
Atjaunina faktisko grāmatu failus, kas saglabāti calibre bibliotēkā no calibre metadatu bāzes. Parasti metadati tiek atjaunināti tikai tad, kad eksportē failus no calibre, šī komanda ir noderīga, ja vēlaties, failus atjaunināt savā vietā. Ņemiet vērā, ka dažādi failu formāti atbalsta dažādas metadatu summas. Lai atjauninātu metadatus, varat izmantot īpašo vērtību "all",, lai atjauninātu book_id visām grāmatām. Varat arī norādīt vairāku grāmatu id, atdalītus ar atstarpēm un id diapazonus atdalītus ar defisēm. Piemēram: % prog embed_metadata 1 2 10 15 23
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --only-formats, -f
- Atjaunināt metadatu failus tikai norādītajā formātā. Norādiet to vairākas reizes, vairākiem formātiem. Pēc noklusējuma, tiek atjaunināti visi formāti.
SEARCH¶
calibredb search [options] search expression
Search the library for the specified search term, returning a comma separated list of book ids matching the search expression. The output format is useful to feed into other commands that accept a list of ids as input.
The search expression can be anything from calibre's powerful search query language, for example: calibredb search author:asimov 'title:"i robot"'
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --limit, -l
- Maksimālais atgriezto rezultātu skaits. Pēc noklusējuma - visi.
FTS_INDEX¶
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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --indexing-speed
- Indeksēšanas ātrums. Izmantojiet ātri, lai ātri indeksētu, izmantojot visus datora resursus, un lēni, lai indeksētu izmantojot mazāk resursu. Ņemiet vērā, ka ātrums tiek atiestatīts uz lēnu pēc katras izsaukšanas.
- --wait-for-completion
- Pagaidiet līdz visas grāmatas tiks indeksētas, periodiski parādot indeksēšanas gaitu
FTS_SEARCH¶
% prog fts_search [opcijas] meklēšanas izteiksme
Veiciet pilnu teksta meklēšanu visā bibliotēkā vai tās apakškopā.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --do-not-match-on-related-words
- Atbilst tikai precīziem vārdiem, kas nav saistīti. Tātad labojums nesakritīs ar labošanu.
- --include-snippets
- Iekļaujiet katras atbilstības teksta fragmentus. Ņemiet vērā, ka tas padara meklēšanu daudz lēnāku.
- --indexing-threshold
- Cik liela daļa bibliotēkas ir jāindeksē, pirms tiek atļauta meklēšana, procentos. Pēc noklusējuma 90
- --match-end-marker
- Marķieris, ko izmanto, lai norādītu atbilstošā vārda beigas fragmentā
- --match-start-marker
- Marķieris, ko izmanto, lai norādītu atbilstošā vārda sākumu fragmentā
- --output-format
- Formāts meklēšanas rezultātu izvadīšanai. Vai nu “text” vienkāršam tekstam vai “json” JSON izvadei.
- --restrict-to
- Ierobežojiet meklētās grāmatas, izmantojot meklēšanas izteiksmi vai ID. Piemēram: ids:1,2,3, lai ierobežotu pēc ID, vai search:tag:foo, lai ierobežotu tikai grāmatas, kurām ir birka 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
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --as-html
- When showing a note, output it as HTML instead of Markdown formatted text
- --field
- 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 ...]
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --search, -s
- 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 ...
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --for-machine
- Generate output in JSON format, which is more suitable for machine parsing
- --replace
- 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 ...
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --annotation-user
- 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.
- --format, -f
- The export format, one of: text, markdown, json. For search, text or json. Default is: text
- --no-stemming
- For search, match exact word forms instead of word stems
- --search, -s
- Only list, search or export the annotations of books matching the specified book search query, for example: --search "series:Foundation"
- --type, -t
- Only list, search or export annotations of the specified type, one of: highlight, bookmark
- --user-type
- 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
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --for-machine
- Generate output for the list action in JSON format, which is more suitable for machine parsing
- --formats
- 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.
Katru reizi, kad jūs nododat argumentus calibredb, kam ir atstarpes, pievienojiet argumentus pēdiņās. Piemēram: "/some path/with spaces"
- --for-machine
- Output the list of files as JSON
- --name
- Name to use for the added file, relative to the data directory
- --output
- Local destination for the get action
- --permanent
- Permanently delete the data file instead of using the recycle bin
- --replace
- Allow replacing existing files when adding, getting or renaming
Author¶
Kovid Goyal
Copyright¶
Kovid Goyal
| novembris 06, 2026 | 9.18.0 |