table of contents
- NAME
- ΓΕΝΙΚΕΣ ΕΠΙΛΟΓΕΣ
- 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 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
ΓΕΝΙΚΕΣ ΕΠΙΛΟΓΕΣ¶
- --help, -h
- Εμφάνιση μηνύματος βοήθειας και έξοδος
- --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
- Κωδικός πρόσβασης για σύνδεση σε έναν διακομιστή περιεχομένου calibre. Για να διαβάσετε τον κωδικό πρόσβασης από την τυπική είσοδο, χρησιμοποιήστε την ειδική τιμή: <stdin>. Για να διαβάσετε τον κωδικό πρόσβασης από ένα αρχείο, χρησιμοποιήστε: <f:/path/to/file> (δηλαδή <f: ακολουθούμενο από την πλήρη διαδρομή του αρχείου και ένα κλείσιμο >). Οι γωνιακές αγκύλες παραπάνω είναι απαραίτητες, θυμηθείτε να τις διαφύγετε ή να χρησιμοποιήσετε εισαγωγικά για το shell σας.
- --timeout
- Ο χρόνος αναμονής, σε δευτερόλεπτα, κατά τη σύνδεση σε μια βιβλιοθήκη calibre μέσω δικτύου. Η προεπιλογή είναι δύο λεπτά.
- --username
- Όνομα χρήστη για σύνδεση σε διακομιστή περιεχομένων calibre
- --version
- δείξε τον αριθμό έκδοσης του προγράμματος και κλείσε
LIST¶
calibredb list [options]
Καταχωρίστε τα βιβλία που είναι διαθέσιμα στη βάση δεδομένων calibre.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --ascending
- Ταξινόμηση αποτελεσμάτων κατά αύξουσα σειρά
- --fields, -f
- Τα πεδία που εμφανίζονται κατά την καταχώριση βιβλίων στη βάση δεδομένων. Θα πρέπει να είναι μια λίστα πεδίων διαχωρισμένων με κόμμα. Διαθέσιμα πεδία: 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
- --for-machine
- Δημιουργήστε έξοδο σε μορφή JSON, η οποία είναι πιο κατάλληλη για ανάλυση από μηχανές. Προκαλεί την αγνόηση των επιλογών πλάτους γραμμής και διαχωριστή.
- --limit
- Ο μέγιστος αριθμός αποτελεσμάτων προς παρουσίαση. Εξ ορισμού: όλα
- --line-width, -w
- Το μέγιστο πλάτος μιας μόνο γραμμής στην έξοδο. Από προεπιλογή ανιχνεύει το μέγεθος της οθόνης.
- --prefix
- Το πρόθεμα για όλες τις διαδρομές αρχείων. Η προεπιλογή είναι η απόλυτη διαδρομή στο φάκελο της βιβλιοθήκης.
- --search, -s
- Φιλτράρετε τα αποτελέσματα με βάση το ερώτημα αναζήτησης. Για τη μορφή του ερωτήματος αναζήτησης, ανατρέξτε στην τεκμηρίωση σχετικά με την αναζήτηση στο Εγχειρίδιο Χρήστη. Προεπιλογή είναι χωρίς φιλτράρισμα
- --separator
- Η συμβολοσειρά που χρησιμοποιείται για να διαχωρίζει τα πεδία. Προεπιλέχθηκε ο χαρακτήρας διαστήματος.
- --sort-by
- Το πεδίο με βάση το οποίο θα ταξινομηθούν τα αποτελέσματα. Μπορείτε να καθορίσετε πολλά πεδία χωρίζοντάς τα με κόμματα. Διαθέσιμα πεδία: 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
- Το πρότυπο που θα εκτελεστεί εάν το "template" βρίσκεται στη λίστα πεδίων. Σημειώστε ότι τα πρότυπα αγνοούνται κατά τη σύνδεση σε έναν διακομιστή calibre. Προεπιλογή: Κανένα
- --template_file, -t
- Διαδρομή προς ένα αρχείο που περιέχει το πρότυπο για εκτέλεση αν "template" βρίσκεται στη λίστα πεδίων. Προεπιλογή: Καμία
- --template_heading
- Επικεφαλίδα για τη στήλη προτύπου. Προεπιλογή: template. Αυτή η επιλογή αγνοείται αν έχει οριστεί η επιλογή --for-machine.
ADD¶
calibredb add [options] file1 file2 file3 ...
Προσθήκη των καθορισμένων αρχείων ως βιβλίων στην βάση δεδομένων. Μπορείτε επίσης να καθορίσετε και καταλόγους. Δείτε τις επιλογές για καταλόγους, παρακάτω.
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
- Αν βρεθούν βιβλία με παρόμοιους τίτλους και συγγραφείς, αυτόματη συγχώνευση των εισερχόμενων μορφών (αρχείων) με υπάρχουσες εγγραφές βιβλίων. Η τιμή «αγνόηση» σημαίνει ότι οι διπλότυπες μορφές θα απορρίπτονται. Η τιμή «αντικατάσταση» σημαίνει ότι οι διπλότυπτες μορφές στην βιβλιοθήκη θα επανεγγράφονται από τα αρχεία που μόλις προστέθηκαν. Η τιμή «νέα_εγγραφή» σημαίνει ότι οι διπλότυπες μορφές αποθηκεύονται σε μια νέα εγγραφή βιβλίου.
- --cover, -c
- Διαδρομή για το εξώφυλλο που θα χρησιμοποιηθεί για το βιβλίο που προστέθηκε
- --duplicates, -d
- Προσθήκη βιβλίων στην βάση δεδομένων ακόμη και αν αυτά υπάρχουν ήδη. Η σύγκριση γίνεται βάσει τίτλου και συγγραφέα. Σημειώστε η επιλογή --automerge έχει προτεραιότητα.
- --empty, -e
- Προσθέστε κενό βιβλίο (Εγγραφή βιβλίου χωρίς αρχείο)
- --identifier, -I
- Ορίστε τα αναγνωριστικά για αυτό το βιβλίο, π.χ. -I asin:XXX -I isbn:YYY
- --isbn, -i
- Καθορισμός των ISBN του βιβλίου(ων) που προστέθηκε
- --languages, -l
- Ένας κατάλογος από γλώσσες που διαχωρίζονται από κόμμα (καλύτερα να χρησιμοποιηθούν κωδικοί γλωσσών ISO639, αν και κάποια ονόματα γλωσσών μπορούν επίσης να αναγνωριστούν)
- --series, -s
- Καθορίστε τη σειρά του προστιθέμενου βιβλίου (ή των προστιθέμενων βιβλίων).
- --series-index, -S
- Καθορίστε τον αριθμό σειράς του προστιθέμενου βιβλίου (ή των προστιθέμενων βιβλίων).
- Καθορισμός ετικετών του βιβλίου(ων) που προστέθηκε
- --title, -t
- Καθορισμός του τίτλου του προστιθέμενου βιβλίου(ων)
ΠΡΟΣΘΗΚΗ ΑΠΟ ΦΑΚΕΛΟΥΣ¶
Επιλογές για τον έλεγχο της προσθήκης βιβλίων από φακέλους. Εξ ορισμού, μόνο αρχεία με επεκτάσεις που αντιστοιχούν σε γνωστές μορφές ψηφιακών βιβλίων προστίθενται.
- --add
- Πρότυπο ονόματος αρχείου (glob). Τα αρχεία που ακολουθούν αυτό το πρότυπο θα προστίθενται όταν σαρώνονται οι κατάλογοι, ακόμη και αν δεν είναι γνωστού τύπου αρχείου ηλεκτρονικού βιβλίου. Μπορεί να ορισθεί πολλές φορές για πολλαπλά πρότυπα.
- --ignore
- Ένα μοτίβο (glob) ονόματος αρχείου, τα αρχεία που ταιριάζουν με αυτό το μοτίβο θα αγνοηθούν κατά τη σάρωση φακέλων για αρχεία. Μπορεί να καθοριστεί πολλές φορές για πολλαπλά μοτίβα. Για παράδειγμα: *.pdf θα αγνοήσει όλα τα αρχεία PDF
- --one-book-per-directory, -1
- Να θεωρείται ότι κάθε κατάλογος έχει μόνο ένα λογικό βιβλίο και ότι όλα τα αρχεία σε αυτόν είναι διαφορετικές μορφές του βιβλίου αυτού.
- --recurse, -r
- Κατ' επανάληψη επεξεργασία καταλόγων
REMOVE¶
calibredb remove ids
Αφαιρέστε τα βιβλία που αναγνωρίζονται από τα ids από τη βάση δεδομένων. Τα ids θα πρέπει να είναι μια λίστα αριθμών id με διαχωρισμό κόμματος (μπορείτε να βρείτε τους αριθμούς id χρησιμοποιώντας την εντολή search). Για παράδειγμα, 23,34,57-85 (όταν προσδιορίζετε ένα εύρος, ο τελευταίος αριθμός στο εύρος δεν συμπεριλαμβάνεται).
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --permanent
- Do not use the trash bin
ADD_FORMAT¶
calibredb add_format [options] id ebook_file
Προσθέστε το ηλεκτρονικό βιβλίο στο αρχείο ebook στις διαθέσιμες μορφές για το λογικό βιβλίο που προσδιορίζεται από το id. Μπορείτε να λάβετε το id χρησιμοποιώντας την εντολή αναζήτησης. Αν η μορφή υπάρχει ήδη, αντικαθίσταται, εκτός αν έχει καθοριστεί η επιλογή μη αντικατάστασης..
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --as-extra-data-file
- Προσθέστε το αρχείο ως επιπλέον αρχείο δεδομένων στο βιβλίο, όχι σε μορφή ηλεκτρονικού βιβλίου
- --dont-replace
- Να μην αντικατασταθούν μορφές που ήδη υπάρχουν
REMOVE_FORMAT¶
calibredb remove_format [options] id fmt
Αφαίρεση της μορφής fmt από το λογικό βιβλίο που αναγνωρίζεται από το id. Μπορείτε να βρείτε το id χρησιμοποιώντας την εντολή search. fmt θα πρέπει να είναι μια επέκταση αρχείου όπως LRF ή TXT ή EPUB. Αν το λογικό βιβλίο δεν έχει διαθέσιμο το fmt, μην κάνετε τίποτα.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
SHOW_METADATA¶
calibredb show_metadata [options] id
Εμφάνισε τα μεταδεδομένα που αποθηκεύονται στη βάση δεδομένων του Calibre για το βιβλίο που αναγνωρίζεται από το id. Το id είναι ένας αριθμός αναγνωριστικού από την εντολή αναζήτησης.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --as-opf
- Εκτύπωση μεταδεδομένων σε μορφή OPF (XML)
SET_METADATA¶
calibredb set_metadata [options] book_id [/path/to/metadata.opf]
Ορίστε τα μεταδεδομένα που αποθηκεύονται στη βάση δεδομένων calibre για το βιβλίο που προσδιορίζεται με book_id από το αρχείο OPF metadata.opf. Το book_id είναι ένας id αριθμός βιβλίου που προέρχεται από την εντολή αναζήτησης. Μπορείτε να αποκτήσετε μια γρήγορη αίσθηση της μορφής OPF χρησιμοποιώντας την επιλογή --as-opf στην εντολή show_metadata. Μπορείτε επίσης να ορίσετε τα μεταδεδομένα μεμονωμένων πεδίων με την επιλογή --field. Αν χρησιμοποιήσετε την επιλογή --field, δεν υπάρχει ανάγκη να καθορίσετε ένα αρχείο OPF.
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 για Γαλλικά κ.λπ.). Για αναγνωριστικά, η σύνταξη είναι --field identifiers:isbn:XXXX,doi:YYYYY. Για λογικά πεδία (ναι/όχι) χρησιμοποιήστε true και false ή yes και no.
- --list-fields, -l
- Καταγράψτε τα ονόματα πεδίων μεταδεδομένων που μπορούν να χρησιμοποιηθούν με την επιλογή --field
EXPORT¶
calibredb export [options] ids
Εξάγει τα βιβλία που καθορίζονται από τα ids (μια λίστα που διαχωρίζεται με κόμμα) στο σύστημα αρχείων. Η λειτουργία εξαγωγής αποθηκεύει όλες τις μορφές του βιβλίου, το εξώφυλλο και τα μεταδεδομένα του (σε ένα αρχείο OPF). Αποθηκεύονται επίσης τυχόν πρόσθετα αρχεία δεδομένων που σχετίζονται με το βιβλίο. Μπορείτε να λάβετε αριθμούς id από την εντολή αναζήτησης.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --all
- Εξαγωγή όλων των βιβλίων στη βάση δεδομένων, αγνοώντας τη λίστα των ids.
- --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. Η επιλογή αυτή θα βάλει τέλος στη συμπεριφορά αυτή.
- --dont-save-cover
- Κανονικά, το calibre θα αποθηκεύσει το εξώφυλλο σε ένα ξεχωριστό αρχείο, μαζί με τα αρχεία ψηφιακών βιβλίων. Η επιλογή αυτή θα βάλει τέλος στη συμπεριφορά αυτή.
- --dont-save-extra-files
- Save any data files associated with the book when saving the book Η επιλογή αυτή θα βάλει τέλος στη συμπεριφορά αυτή.
- --dont-update-metadata
- Κανονικά, το calibre θα ενημερώσει τα μεταδεδομένα στα προς αποθήκευση αρχεία, βασιζόμενο στα δεδομένα της βιβλιοθήκης. Αυτό κάνει πιο αργή τη διαδικασία αποθήκευσης. Η επιλογή αυτή θα βάλει τέλος στη συμπεριφορά αυτή.
- --dont-write-opf
- Κανονικά, το calibre θα γράψει τα μεταδεδομένα σε ένα ξεχωριστό αρχείο OPF μαζί με τα πραγματικά αρχεία ψηφιακών βιβλίων. Η επιλογή αυτή θα βάλει τέλος στη συμπεριφορά αυτή.
- --formats
- Διαχωριζόμενος από κόμματα κατάλογος των μορφών που θα αποθηκεύονται για κάθε βιβλίο. Προεπιλογή είναι να αποθηκεύονται όλες οι διαθέσιμες μορφές.
- --progress
- Αναφορά προόδου
- --replace-whitespace
- Αντικατάσταση των λευκών χαρακτήρων από κάτω παύλες.
- --single-dir
- Εξαγωγή όλων των βιβλίων στον ίδιο φάκελο
- --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
- Η μορφή στην οποία εμφανίζονται οι ημερομηνίες. %d - ημέρα, %b - μήνας, %m - αριθμός μήνα, %Y - έτος. Η προεπιλογή είναι: %b, %Y
- --to-dir
- Εξαγωγή των βιβλίων στον καθορισμένο φάκελο. Εξ ορισμού .
- --to-lowercase
- Μετατροπή διαδρομών σε πεζά.
CATALOG¶
calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options]
Εξαγωγή ενός καταλόγου σε μορφή που καθορίζεται από path/to/destination επέκταση. Οι επιλογές ελέγχουν τον τρόπο εμφάνισης των καταχωρήσεων στην έξοδο του παραγόμενου καταλόγου. Σημειώστε ότι διαφορετικές μορφές καταλόγων υποστηρίζουν διαφορετικά σύνολα επιλογών. Για να δείτε τις διάφορες επιλογές, καθορίστε το όνομα του αρχείου εξόδου και στη συνέχεια την επιλογή --help.
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
- Διαχωρισμένη με κόμμα λίστα αναγνωριστικών βάσης δεδομένων στον κατάλογο. Αν δηλωθεί, το --search αγνοείται. Προεπιλογή: όλα
- --search, -s
- Φιλτράρετε τα αποτελέσματα με βάση το ερώτημα αναζήτησης. Για τη μορφή του ερωτήματος αναζήτησης, ανατρέξτε στην τεκμηρίωση σχετικά με την αναζήτηση στο Εγχειρίδιο Χρήστη. Προεπιλογή: χωρίς φιλτράρισμα
- --verbose, -v
- Παρουσίαση λεπτομερειών στην έξοδο. Χρήσιμο για αποσφαλμάτωση.
EPUB ΕΠΙΛΟΓΕΣ¶
- --catalog-title
- Title of generated catalog used as title in metadata. Default: 'My Books' Applies to: AZW3, EPUB, MOBI output formats
- --cross-reference-authors
- Create cross-references in Authors section for books with multiple authors. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --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
- Regex describing tags to exclude as genres. Default: '[.+]|^+$' excludes bracketed tags, e.g. '[Project Gutenberg]', and '+', the default tag for read books. Applies to: AZW3, EPUB, MOBI output formats
- --exclusion-rules
- Specifies the rules used to exclude books from the generated catalog. The model for an exclusion rule is either ('<rule name>','Tags','<comma-separated list of tags>') or ('<rule name>','<custom column>','<pattern>'). For example: (('Archived books','#status','Archived'),) will exclude a book with a value of 'Archived' in the custom column 'status'. When multiple rules are defined, all rules will be applied. Default: "(('Catalogs','Tags','Catalog'),)" Applies to: AZW3, EPUB, MOBI output formats
- --generate-authors
- Include 'Authors' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --generate-descriptions
- Include 'Descriptions' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --generate-genres
- Include 'Genres' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --generate-recently-added
- Include 'Recently Added' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --generate-series
- Include 'Series' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --generate-titles
- Include 'Titles' section in catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
- --genre-source-field
- Source field for 'Genres' section. Default: 'Ετικέτες' Applies to: AZW3, EPUB, MOBI output formats
- --header-note-source-field
- Custom field containing note text to insert in Description header. Default: '' Applies to: AZW3, EPUB, MOBI output formats
- --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
- Specifies the output profile. In some cases, an output profile is required to optimize the catalog for the device. For example, 'kindle' or 'kindle_dx' creates a structured Table of Contents with Sections and Articles. Default: 'None' Applies to: AZW3, EPUB, MOBI output formats
- --prefix-rules
- Specifies the rules used to include prefixes indicating read books, wishlist items and other user-specified prefixes. The model for a prefix rule is ('<rule name>','<source field>','<pattern>','<prefix>'). When multiple rules are defined, the first matching rule will be used. Default: "(('Read books','tags','+','✓'),('Wishlist item','tags','Wishlist','×'))" Applies to: AZW3, EPUB, MOBI output formats
- --preset
- Use a named preset created with the GUI catalog builder. A preset specifies all settings for building a catalog. Default: 'None' Applies to: AZW3, EPUB, MOBI output formats
- --thumb-width
- Size hint (in inches) for book covers in catalog. Range: 1.0 - 2.0 Default: '1.0' Applies to: AZW3, EPUB, MOBI output formats
- --use-existing-cover
- Replace existing cover when generating the catalog. Default: 'False' Applies to: AZW3, EPUB, MOBI output formats
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
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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
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: composite_template, composite_sort, make_category,contains_html, use_decorations datetime: date_format enumeration: enum_values, enum_colors, use_decorations int, float: number_format text: is_names, use_decorations Ο καλύτερος τρόπος για να βρείτε τους νόμιμους συνδυασμούς είναι να δημιουργήσετε μια προσαρμοσμένη στήλη του κατάλληλου τύπου στο GUI και στη συνέχεια να εξετάσετε το εφεδρικό OPF για ένα βιβλίο (βεβαιωθείτε ότι έχει δημιουργηθεί νέο OPF από τότε που προστέθηκε η στήλη). Θα δείτε το JSON για το "display" για τη νέα στήλη στο OPF.
- --is-multiple
- Στη στήλη αυτή αποθηκεύονται δεδομένα τύπου ετικέτας (δηλαδή πολλαπλές τιμές που διαχωρίζονται από κόμμα). Βρίσκει εφαρμογή μόνο αν ο τύπος δεδομένων είναι κείμενο.
CUSTOM_COLUMNS¶
calibredb custom_columns [options]
Λίστα διαθέσιμων προσαρμοσμένων στηλών. Εμφανίζει ετικέτες στηλών και αναγνωριστικά.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --details, -d
- Προβολή λεπτομερειών για κάθε στήλη.
REMOVE_CUSTOM_COLUMN¶
calibredb remove_custom_column [options] label
Αφαιρέστε την προσαρμοσμένη στήλη που προσδιορίζεται από την ετικέτα. Μπορείτε να δείτε τις διαθέσιμες στήλες με την εντολή custom_columns.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --force, -f
- Να μην ζητείται επιβεβαίωση
SET_CUSTOM¶
calibredb set_custom [options] column id value
Ορισμός τιμής προσαρμοσμένης στήλης για το βιβλίο που προσδιορίζεται από το id. Μπορείτε να λάβετε μια λίστα ids χρησιμοποιώντας την εντολή αναζήτησης. Μπορείτε να λάβετε μια λίστα με τα ονόματα των προσαρμοσμένων στηλών χρησιμοποιώντας τη custom_columns εντολή.
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
- Αν στη στήλη αποθηκεύονται πολλαπλές τιμές, να προστεθούν οι καθορισμένες τιμές στις ήδη υπάρχουσες αντί να τις αντικαταστήσουν.
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.
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
- Κάντε πραγματικά την ανάκτηση. Η εντολή δεν θα εκτελεστεί εκτός αν καθοριστεί αυτή η επιλογή.
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
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --csv, -c
- Εξαγωγή σε CSV
- --ignore_extensions, -e
- Διαχωριζόμενη από κόμματα λίστα από επεκτάσεις που θα αγνοούνται. Προεπιλογή: όλες
- --ignore_names, -n
- Διαχωριζόμενη από κόμματα λίστα από ονόματα που θα αγνοούνται. Προεπιλογή: όλα
- --report, -r
- Διαχωριζόμενη από κόμματα λίστα από αναφορές. Προεπιλογή: όλες
- --vacuum-fts-db
- Σκουπίστε τη βάση δεδομένων αναζήτησης πλήρους κειμένου. Αυτό μπορεί να είναι πολύ αργό και απαιτητικό σε μνήμη, ανάλογα με το μέγεθος της βάσης δεδομένων.
LIST_CATEGORIES¶
calibredb list_categories [options]
Παράγετε μια αναφορά με τις πληροφορίες κατηγορίας στη βάση δεδομένων. Οι πληροφορίες αντιστοιχούν σε εκείνες που εμφανίζονται στον περιηγητή Ετικετών.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --categories, -r
- Διαχωριζόμενη από κόμματα λίστα από ονομασίες ευρετηρίου κατηγοριών. Προεπιλογή: όλες
- --csv, -c
- Εξαγωγή σε CSV
- --dialect
- Ο τύπος του αρχείου CSV που θα δημιουργηθεί. Επιλογές: excel, excel-tab, unix
- --item_count, -i
- Εμφάνιζε μόνο τον αριθμό των αντικειμένων σε μια κατηγορία αντί για τις μετρήσεις ανά αντικείμενο μέσα στην κατηγορία
- --width, -w
- Το μέγιστο πλάτος μιας μόνο γραμμής στην έξοδο. Από προεπιλογή ανιχνεύει το μέγεθος της οθόνης.
BACKUP_METADATA¶
calibredb backup_metadata [options]
Δημιουργήστε αντίγραφα ασφαλείας των μεταδεδομένων που είναι αποθηκευμένα στη βάση δεδομένων σε μεμονωμένα αρχεία OPF σε κάθε φάκελος βιβλίων. Αυτό συνήθως συμβαίνει αυτόματα, αλλά μπορείτε να εκτελέσετε το εξής εντολή για να αναγκάσετε την επαναδημιουργία των αρχείων OPF, με την επιλογή --all.
Σημείωση: κανονικά δεν χρειάζεται να το κάνετε αυτό, καθώς τα αρχεία OPF δημιουργούνται με αντίγραφα ασφαλείας. αυτόματα, κάθε φορά που αλλάζουν τα μεταδεδομένα.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --all
- Κανονικά, η εντολή αυτή ενεργεί μόνο σε βιβλία που έχουν παρωχημένα αρχεία OPF. Με την επιλογή αυτή επιτρέπεται η δράση σε όλα τα βιβλία.
CLONE¶
calibredb clone path/to/new/library
Δημιουργήστε έναν κλώνο της τρέχουσας βιβλιοθήκης. Αυτό δημιουργεί μια νέα, κενή βιβλιοθήκη που έχει τις ίδιες προσαρμοσμένες στήλες, εικονικές βιβλιοθήκες και άλλες ρυθμίσεις με την τρέχουσα βιβλιοθήκη.
Η κλωνοποιημένη βιβλιοθήκη δεν θα περιέχει κανένα βιβλίο. Εάν θέλετε να δημιουργήσετε ένα πλήρες αντίγραφο, συμπεριλαμβανομένων όλων των βιβλίων, τότε απλώς χρησιμοποιήστε τα εργαλεία του συστήματος αρχείων σας για να αντιγράψετε τον φάκελο της βιβλιοθήκης.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
EMBED_METADATA¶
calibredb embed_metadata [options] book_id
Ενημερώστε τα μεταδεδομένα στα πραγματικά αρχεία βιβλίων που αποθηκεύονται στη βιβλιοθήκη calibre από τα μεταδεδομένα στη βάση δεδομένων του calibre. Κανονικά, τα μεταδεδομένα ενημερώνονται μόνο κατά την εξαγωγή αρχείων από το calibre, αυτή η εντολή είναι χρήσιμη εάν θέλετε τα αρχεία να ενημερωθούν επιτόπου. Σημειώστε ότι διαφορετικές μορφές αρχείων υποστηρίζουν διαφορετικές ποσότητες μεταδεδομένων. Μπορείτε να χρησιμοποιήσετε την ειδική τιμή 'all' για το book_id για να ενημερώσετε τα μεταδεδομένα σε όλα τα βιβλία. Μπορείτε επίσης να ορίσετε πολλά αναγνωριστικά βιβλίων χωρισμένα με κενά και εύρη αναγνωριστικών χωρισμένα με παύλες. Για παράδειγμα: 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
- Ενημερώνει μόνο τα μεταδεδομένα σε αρχεία της καθορισμένης μορφής. Καθορίστε το πολλές φορές για πολλαπλές μορφές. Από προεπιλογή, ενημερώνονται όλες οι μορφές.
SEARCH¶
calibredb search [options] search expression
Αναζητήστε στη βιβλιοθήκη τον καθορισμένο όρο αναζήτησης, επιστρέφοντας μια λίστα με ταυτότητες βιβλίων διαχωρισμένες με κόμμα που ταιριάζουν με την έκφραση αναζήτησης. Η μορφή εξόδου είναι χρήσιμη για να τροφοδοτεί άλλες εντολές που δέχονται μια λίστα ταυτοτήτων ως είσοδο.
Η έκφραση αναζήτησης μπορεί να είναι οτιδήποτε από τη δυνατή γλώσσα ερωτημάτων αναζήτησης του calibre, για παράδειγμα: 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"
- --limit, -l
- Ο μέγιστος αριθμός αποτελεσμάτων που θα επιστραφεί. Η προεπιλεγμένη τιμή είναι όλα τα αποτελέσματα.
FTS_INDEX¶
calibredb fts_index [options] enable/disable/status/reindex
Έλεγχος της διαδικασίας ευρετηρίασης πλήρους κειμένου.
- enable
- Ενεργοποίηση ευρετηρίασης ΠΚ για αυτή τη βιβλιοθήκη
- disable
- Απενεργοποίηση ευρετηρίασης ΠΚ για αυτή τη βιβλιοθήκη
- status
- Εμφανίζει την τρέχουσα κατάσταση ευρετηρίασης
- reindex
- Μπορεί να χρησιμοποιηθεί για επανευρετηρίαση είτε συγκεκριμένων βιβλίων είτε ολόκληρης της βιβλιοθήκης. Για να επανευρετηριαστούν συγκεκριμένα βιβλία, καθορίστε τα αναγνωριστικά των βιβλίων ως επιπλέον παραμέτρους μετά την εντολή reindex. Εάν δεν καθοριστούν αναγνωριστικά βιβλίων γίνεται επανευρετηρίαση ολόκληρης της βιβλιοθήκης.
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
- Η ταχύτητα ευρετηρίασης. Χρησιμοποιήστε την επιλογή 'γρήγορα' για γρήγορη ευρετηρίαση χρησιμοποιώντας όλους τους πόρους του υπολογιστή σας και 'αργά' για ευρετηρίαση που απαιτεί λιγότερους πόρους. Σημειώστε ότι η ταχύτητα επαναφέρεται σε 'αργά' μετά από κάθε εκτέλεση.
- --wait-for-completion
- Περιμένετε μέχρι να ευρετηριαστούν όλα τα βιβλία, δείχνοντας περιοδικά την πρόοδο της ευρετηρίασης
FTS_SEARCH¶
calibredb fts_search [options] search expression
Πραγματοποιήστε αναζήτηση πλήρους κειμένου σε ολόκληρη τη βιβλιοθήκη ή σε ένα υποσύνολό της.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
- --do-not-match-on-related-words
- Ταιριάζει μόνο σε ακριβείς λέξεις και όχι σε συναφείς λέξεις. Έτσι, η διόρθωση δεν θα ταιριάζει με τη διόρθωση.
- --include-snippets
- Συμπεριλάβετε αποσπάσματα του κειμένου γύρω από κάθε αντιστοιχία. Σημειώστε ότι αυτό καθιστά την αναζήτηση πολύ πιο αργή.
- --indexing-threshold
- Πόσο μεγάλο μέρος της βιβλιοθήκης πρέπει να είναι ευρετηριασμένο πριν επιτραπεί η αναζήτηση, ως ποσοστό. Προεπιλογή σε 90
- --match-end-marker
- Ο δείκτης που χρησιμοποιείται για να υποδείξει το τέλος μιας ταιριασμένης λέξης μέσα σε ένα απόσπασμα
- --match-start-marker
- Ο δείκτης που χρησιμοποιείται για να υποδείξει την αρχή μιας ταιριασμένης λέξης μέσα σε ένα απόσπασμα
- --output-format
- Η μορφή με την οποία θα εξάγονται τα αποτελέσματα της αναζήτησης. Είτε "text" για απλό κείμενο ή "json" για έξοδο JSON.
- --restrict-to
- Περιορίστε τα βιβλία που αναζητούνται, είτε χρησιμοποιώντας μια έκφραση αναζήτησης είτε ids. Για παράδειγμα: ids:1,2,3 για περιορισμό με βάση τα ids ή search:tag:foo για περιορισμό στα βιβλία που έχουν την ετικέτα 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
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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 ...]
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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 ...
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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 ...
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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.
Whenever you pass arguments to calibredb that have spaces in them, enclose the arguments in quotation marks. For example: "/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
| Νοεμβρίου 06, 2026 | 9.18.0 |