Scroll to navigation

CALIBREDB(1) calibre CALIBREDB(1)

NAME

calibredb - calibredb

calibredb أمر [خيارات] [وسائط]


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

الخيارات العالمية

إظهار رسالة المساعدة هذه والخروج

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/ar/generated/ar/calibredb.html>.

كلمة المرور للاتصال بخادم محتوى كاليبر. لقراءة كلمة المرور من الإدخال القياسي، استخدم القيمة الخاصة: <stdin>. لقراءة كلمة المرور من ملف، استخدم: <f:/path/to/file> (أي <f: متبوعًا بالمسار الكامل للملف وعلامة >). الأقواس الزاوية أعلاه مطلوبة، تذكر أن تقوم بتهريبها أو استخدام علامات اقتباس لقشرتك.

المهلة، بالثواني، عند الاتصال بمكتبة كاليبر عبر الشبكة. الافتراضي هو دقيقتان.

اسم المستخدم للاتصال بخادم محتوى كاليبر

إظهار رقم إصدار البرنامج والخروج

LIST

calibredb list [options]


قم بإدراج الكتب المتوفرة في قاعدة بيانات كاليبر.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

ترتيب الترتيب بترتيب تصاعدي

الحقول المراد عرضها عند إدراج الكتب في قاعدة البيانات. يجب أن تكون قائمة حقول مفصولة بفواصل. الحقول المتاحة: author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid الافتراضي: title,authors. يمكن استخدام الحقل الخاص "all" لتحديد جميع الحقول. بالإضافة إلى الحقول المضمنة أعلاه، تتوفر الحقول المخصصة أيضًا كـ *field_name، على سبيل المثال، لحقل مخصص #rating، استخدم الاسم: *rating

إنشاء مخرجات بتنسيق جسون -JSON-، وهو الأنسب للتحليل الآلي. يؤدي ذلك إلى تجاهل خيارات عرض السطر والفواصل.

الحد الأقصى لعدد النتائج المعروضة. افتراضيًا: الكل

الحد الأقصى لعرض سطر واحد في المخرجات. افتراضيًا، يتم تحديد حجم الشاشة.

بادئة جميع مسارات الملفات. المسار الافتراضي هو المسار المطلق لمجلد المكتبة.

قم بتصفية النتائج حسب استعلام البحث. لمعرفة تنسيق استعلام البحث، يُرجى مراجعة الوثائق المتعلقة بالبحث في دليل المستخدم. الإعداد الافتراضي هو عدم إجراء أي تصفية.

السلسلة التي تستخدم لتفريق الحقول. الإفتراضي يستخدم الفراغ.

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" موجودًا في قائمة الحقول. يُرجى ملاحظة أنه يتم تجاهل القوالب عند الاتصال بخادم كاليبر. الإعداد الافتراضي: لا شيء

مسار إلى ملف يحتوي على القالب المطلوب تشغيله إذا كان "template" موجودًا في قائمة الحقول. إفتراضياً: لا شيء

عنوان عمود القالب. الإعداد الافتراضي: %d efault. يتم تجاهل هذا الخيار عند تعيين الخيار --for-machine

ADD

rog add [options] file1 file2 file3‎ ‎.‎.‎.‎%p


أضف الملفات المحددة على أنها كتب إلى قاعدة البيانات. يمكنك تحديد مجلدات كذلك، انظر خيارات المجلدات في الأسفل.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

عيّن المؤلف للكتاب(كتب) المضافة

إذا وجدت كتب بنفس العناوين والمؤلفين، فادمج الأنساق (الملفات) القادمة تلقائياً بقيود الكتب الموجودة. القيمة "تجاهل" "ignore" تعني التخلي عن الأنساق المكررة. القيمة "الكتابة عليها" "overwrite" تعني الكتابة على الأنساق المكررة في المكتبة بالملفات المضافة حديثاً. القيمة "قيد_جديد" "new_record" تعني أنّ الأنساق المكررة توضع في قيد كتاب جديد.

المسار إلى الغلاف الذي سيُستخدَم للكتاب المضاف

أضف الكتب إلى قاعدة البيانات حتى لو كانت موجودة مسبقاً. تُعمَل المقارنة استناداً إلى عناوين ومؤلفي الكتب. لاحظ أنّ الخيار --automerge يأخذ الأسبقية.

أضف كتابا خاليا (كتاب بلا تنسيقات)

اضبط المعرّفات لهذا الكتاب، مثلًا ‎-I asin:XXX -I isbn:YYY

عيّن ISBN للكتاب(كتب) المضافة

قائمة لغات تفصل بينها فاصلة (يفضل استخدام رموز لغة ISO639، على أن بعض أسماء اللغات قد تُعرف)

عيّن السلسلة للكتاب(الكتب) المضاف

عيّن رقم السلسلة للكتاب(الكتب) المضاف

عيّن الوسوم للكتاب(الكتب) المضاف

عيّن العنوان للكتاب(كتب) المضافة

الإضافة من مجلدات

خيارات للتحكم بإضافة الكتب من المجلدات. مبدئيا تُضاف فقط الملفات ذات الإمتدادات بأنواع ملفات كتب الكترونية معروفة.

نمط اسم الملف (glob)، عند فحص المجلدات بحثًا عن الملفات ستضاف الملفات المطابقة لهذا النمط، حتى لو لم تكن من نوع e-book معروف. يجوز تعيينها عدة مرات لأنماط متعددة.

نمط اسم الملف (glob)، عند فحص المجلدات بحثًا عن الملفات سيتم تجاهل الملفات المطابقة لهذا النمط. يجوز تعيينها عدة مرات لأنماط متعددة. مثل: * .pdf يتجاهل جميع ملفات PDF

افترض ان في كل مجلد كتاب منطقي واحد وان كل الملفات فيه هي أنساق كتب الكترونية مختلفة لذلك الكتاب

معالجة المجلدات بشكل دوري

REMOVE

calibredb remove ids


إزالة الكتب المعرفة بواسطة ids من قاعدة البيانات. يجب أن تكون ids قائمة أرقام معرفات مفصولة بفواصل (يمكنك الحصول على أرقام المعرفات باستخدام أمر البحث). على سبيل المثال، 23,34,57-85 (عند تحديد نطاق، لا يتم تضمين الرقم الأخير في النطاق).

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

Do not use the trash bin

ADD_FORMAT

calibredb add_format [options] id ebook_file


أضف الكتاب الإلكتروني الموجود في ebook_file إلى التنسيقات المتاحة للكتاب المنطقي المعرف بواسطة id. يمكنك الحصول على id باستخدام أمر البحث. إذا كان التنسيق موجودًا بالفعل، فسيتم استبداله، ما لم يتم تحديد خيار عدم الاستبدال.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

أضف الملف كبيانات إضافية للكتاب، وليس بتنسيق كتاب إلكتروني

لا تستبدل التنسيق إذا كان موجودًا بالفعل

REMOVE_FORMAT

calibredb remove_format [خيارات] id fmt


إزالة التنسيق fmt من الكتاب المنطقي المعرّف بواسطة id. يمكنك الحصول على id باستخدام أمر البحث. يجب أن يكون fmt امتداد ملف مثل LRF أو TXT أو EPUB. إذا لم يكن التنسيق fmt متاحًا للكتاب المنطقي، فلا تفعل شيئًا.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

SHOW_METADATA

calibredb show_metadata [خيارات] id


عرض البيانات الوصفية المخزنة في قاعدة بيانات calibre للكتاب المعرف بواسطة id. id هو رقم تعريف من أمر البحث.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

طباعة البيانات الوصفية بصيغة التعبئة المفتوحة OPF (XML)

SET_METADATA

calibredb set_metadata [خيارات] book_id [/path/to/metadata.opf]


تعيين البيانات الوصفية المخزنة في قاعدة بيانات calibre للكتاب المعرّف بواسطة book_id من ملف OPF metadata.opf. book_id هو رقم معرف كتاب من أمر البحث. يمكنك الحصول على فكرة سريعة عن تنسيق OPF باستخدام المفتاح --as-opf لأمر show_metadata. يمكنك أيضًا تعيين البيانات الوصفية لـ الحقول الفردية باستخدام خيار --field. إذا استخدمت خيار --field، فلا حاجة لتحديد ملف OPF.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

الحقل المراد تعيينه. الصيغة هي field_name:value، على سبيل المثال: --field tags:tag1,tag2. استخدم --list-fields للحصول على قائمة بأسماء جميع الحقول. يمكنك تحديد هذا الخيار عدة مرات لتعيين حقول متعددة. ملاحظة: بالنسبة للغات، يجب استخدام رموز اللغة ISO639 (مثل en للإنجليزية، fr للفرنسية وهكذا). بالنسبة للمعرفات، الصيغة هي --field identifiers:isbn:XXXX,doi:YYYYY. للحقول المنطقية (نعم/لا) استخدم true و false أو yes و no.

قم بإدراج أسماء حقول البيانات الوصفية التي يمكن استخدامها مع خيار --field

EXPORT

calibredb export [خيارات] ids


تصدير الكتب المحددة بواسطة ids (قائمة مفصولة بفواصل) إلى نظام الملفات. عملية التصدير تحفظ جميع تنسيقات الكتاب، غلافه وبياناته الوصفية (في ملف OPF). أية ملفات بيانات إضافية مرتبطة بالكتاب يتم حفظها أيضًا. يمكنك الحصول على أرقام المعرفات من أمر البحث.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

تصدير كافة الكتب الموجودة في قاعدة البيانات، مع تجاهل قائمة المعرفات.

اجعل calibre يحول جميع الأحرف غير الإنجليزية إلى مكافئات إنجليزية لأسماء الملفات. هذا مفيد إذا كنت تحفظ إلى نظام ملفات قديم بدون دعم كامل لأسماء الملفات Unicode. سيؤدي تحديد هذا المفتاح إلى إيقاف تشغيل هذا السلوك.

عادةً، سيقوم calibre بحفظ الغلاف في ملف منفصل مع ملفات الكتاب الإلكتروني الفعلية. سيؤدي تحديد هذا المفتاح إلى إيقاف تشغيل هذا السلوك.

حفظ أي ملفات بيانات مرتبطة بالكتاب عند حفظ الكتاب سيؤدي تحديد هذا المفتاح إلى إيقاف تشغيل هذا السلوك.

عادةً، سيقوم calibre بتحديث البيانات الوصفية في الملفات المحفوظة من ما هو موجود في مكتبة calibre. هذا يجعل الحفظ على القرص أبطأ. سيؤدي تحديد هذا المفتاح إلى إيقاف تشغيل هذا السلوك.

عادةً، سيقوم calibre بكتابة البيانات الوصفية في ملف OPF منفصل مع ملفات الكتاب الإلكتروني الفعلية. سيؤدي تحديد هذا المفتاح إلى إيقاف تشغيل هذا السلوك.

قائمة مفصولة بفاصلات للتنسيقات المراد حفظها لكل كتاب. افتراضيًا، يتم حفظ جميع التنسيقات المتاحة.

تقرير التقدم

--replace-whitespace
استبدال المسافات بواصلات سفلية.

تصدير جميع الكتب إلى مجلد واحد

القالب للتحكم في اسم الملف وهيكل المجلدات للملفات المحفوظة. الافتراضي هو "{author_sort}/{title}/{title} - {authors}" الذي سيحفظ الكتب في مجلد فرعي لكل مؤلف بأسماء ملفات تحتوي على العنوان والمؤلف. عناصر التحكم المتاحة هي: {author_sort, authors, id, isbn, languages, last_modified, pages, pubdate, publisher, rating, series, series_index, tags, timestamp, title}

التنسيق الذي ستعرض به التواريخ. %d - يوم، %b - شهر، %m - رقم الشهر، %Y - سنة. الافتراضي هو: %b, %Y

تصدير الكتب إلى المجلد المحدد. الإعداد الافتراضي هو .

تحويل المسارات إلى أحرف صغيرة.

CATALOG

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


تصدير قائمة بتنسيق مُحدد بامتداد المسار/إلى/الوجهة.

تتحكم الخيارات في كيفية عرض المدخلات في مُخرجات القائمة المُولّدة.

يُرجى العلم أن تنسيقات القائمة المختلفة تدعم مجموعات مُختلفة من الخيارات.

لعرض الخيارات المُختلفة، حدد اسم ملف الإخراج ثم الخيار --help.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

قائمة مفصولة بفواصل لمعرفات قواعد البيانات المراد فهرستها. في حال التعبير عن ذلك، يتم تجاهل أمر البحث. افتراضياً: الكل

تصفية النتائج حسب استعلام البحث. للاطلاع على صيغة استعلام البحث، يُرجى مراجعة الوثائق المتعلقة بالبحث في دليل المستخدم. افتراضياً: بدون تصفية

عرض المعلومات النتائج التفصيلية. مفيد لتصحيح الأخطاء

خيارات EPUB

عنوان الكتالوج الذي تم إنشاؤه يستخدم كعنوان في البيانات الوصفية. الافتراضي: 'My Books' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

إنشاء مراجع متقاطعة في قسم المؤلفين للكتب ذات المؤلفين المتعددين. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

حفظ الإخراج من مراحل مختلفة من مسار التحويل إلى المجلد المحدد. مفيد إذا كنت غير متأكد في أي مرحلة من عملية التحويل يحدث خطأ. الافتراضي: 'None' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تعبير نمطي يصف العلامات المراد استبعادها كأنواع. الافتراضي: '[.+]|^+$' يستبعد العلامات المحاطة بأقواس، مثل '[Project Gutenberg]'، و '+'، العلامة الافتراضية للكتب المقروءة. ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

يحدد القواعد المستخدمة لاستبعاد الكتب من الكتالوج الذي تم إنشاؤه. نموذج قاعدة الاستبعاد هو إما ('<اسم القاعدة>','العلامات','<قائمة علامات مفصولة بفاصلة>') أو ('<اسم القاعدة>','<عمود مخصص>','<نمط>'). على سبيل المثال: (('الكتب المؤرشفة','#الحالة','مؤرشفة'),) سيستبعد كتابًا بقيمة 'مؤرشفة' في العمود المخصص 'الحالة'. عند تعريف قواعد متعددة، سيتم تطبيق جميع القواعد. الافتراضي: "(('Catalogs','Tags','Catalog'),)" ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'المؤلفون' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'الوصف' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'الأنواع' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'المضاف حديثًا' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'السلسلة' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تضمين قسم 'العناوين' في الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

حقل المصدر لقسم 'الأنواع'. الافتراضي: 'الوسوم' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

حقل مخصص يحتوي على نص ملاحظة لإدراجه في رأس الوصف. الافتراضي: '' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

#<حقل مخصص>:[قبل|بعد]:[صحيح|خطأ] يحدد: <حقل مخصص> حقل مخصص يحتوي على ملاحظات لدمجها مع التعليقات [قبل|بعد] موضع الملاحظات بالنسبة للتعليقات [صحيح|خطأ] - يتم إدراج خط أفقي بين الملاحظات والتعليقات الافتراضي: '::' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

--output-profile
يحدد ملف تعريف الإخراج. في بعض الحالات، يلزم ملف تعريف إخراج لتحسين الكتالوج للجهاز. على سبيل المثال، 'kindle' أو 'kindle_dx' ينشئ جدول محتويات منظمًا مع أقسام ومقالات. الافتراضي: 'None' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

--prefix-rules
يحدد القواعد المستخدمة لتضمين بادئات تشير إلى الكتب المقروءة وعناصر قائمة الرغبات والبادئات الأخرى التي يحددها المستخدم. نموذج قاعدة البادئة هو ('<اسم القاعدة>','<حقل المصدر>','<النمط>','<البادئة>'). عند تعريف قواعد متعددة، سيتم استخدام أول قاعدة مطابقة. الافتراضي: "(('Read books','tags','+','✓'),('Wishlist item','tags','Wishlist','×'))" ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

استخدم إعدادًا مسبقًا مسمى تم إنشاؤه باستخدام منشئ الكتالوج الرسومي. يحدد الإعداد المسبق جميع الإعدادات لإنشاء كتالوج. الافتراضي: 'None' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

تلميح الحجم (بالبوصة) لأغلفة الكتب في الكتالوج. النطاق: 1.0 - 2.0 الافتراضي: '1.0' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

استبدال الغلاف الموجود عند إنشاء الكتالوج. الافتراضي: 'False' ينطبق على: تنسيقات إخراج AZW3, EPUB, MOBI

SAVED_SEARCHES

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


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

Syntax for listing, the default action:

calibredb saved_searches list

Syntax for adding:

calibredb saved_searches add search_name search_expression

Syntax for removing:

calibredb saved_searches remove search_name

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

ADD_CUSTOM_COLUMN

calibredb add_custom_column [خيارات] label name datatype


إنشاء عمود مخصص. label هو الاسم سهل الاستخدام للعمود. يجب ألا يحتوي على مسافات أو علامات ترقيم. name هو الاسم المفهوم بشريًا للعمود. datatype هو أحد الأنواع التالية: bool, comments, composite, datetime, enumeration, float, int, rating, series, text

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

قاموس بالخيارات لتخصيص كيفية تفسير البيانات في هذا العمود. هذا هو سلسلة JSON. لأعمدة التعداد، استخدم --display"{\ "enum_values\ ":[\ "val1\ ", \ "val2\ "]}" هناك العديد من الخيارات التي يمكن تضمينها في متغير العرض. الخيارات حسب نوع العمود هي: مركب: composite_template, composite_sort, make_category, contains_html, use_decorations تاريخ ووقت: date_format تعداد: enum_values, enum_colors, use_decorations عدد صحيح، عدد عشري: number_format نص: is_names, use_decorations أفضل طريقة للعثور على التوليفات القانونية هي إنشاء عمود مخصص من النوع المناسب في واجهة المستخدم الرسومية ثم البحث في ملف OPF الاحتياطي لكتاب (تأكد من إنشاء OPF جديد منذ إضافة العمود). سترى JSON لـ "العرض" للعمود الجديد في ملف OPF.

هذا العمود يخزن بيانات بصورة مشابهة للوسوم (أي قيم متعددة مفصولة بفوارز). ينطبق فقد إذا كان نوع البيانات نصاً.

CUSTOM_COLUMNS

%p rog custom_columns [options]


قائمة بالأعمدة المخصصة المتاحة. عرض تسميات الأعمدة ومعرفاتها

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

إظهار التفاصيل لكل عمود.

REMOVE_CUSTOM_COLUMN

calibredb remove_custom_column [خيارات] label


إزالة العمود المخصص المعرّف بواسطة label. يمكنك رؤية الأعمدة المتاحة باستخدام أمر custom_columns.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

لا تطلب التأكيد

SET_CUSTOM

calibredb set_custom [خيارات] column id value


تعيين قيمة عمود مخصص للكتاب المعرف بواسطة id. يمكنك الحصول على قائمة من المعرفات باستخدام أمر البحث. يمكنك الحصول على قائمة بأسماء الأعمدة المخصصة باستخدام أمر custom_columns.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

إذا كان العمود يخزن قيم متعددة، يتم إلحاق القيم المحددة الى القيم القائمة بالفعل، بدلا من استبدالها.

RESTORE_DATABASE

calibredb restore_database [options]


Restore this database from the metadata stored in OPF files in each folder of the calibre library. This is useful if your metadata.db file has been corrupted.

WARNING: This command completely regenerates your database. You will lose all saved searches, user categories, plugboards, stored per-book conversion settings, and custom recipes. Restored metadata will only be as accurate as what is found in the OPF files.

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

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

قم بالاسترداد فعلاً. لن يتم تنفيذ الأمر إلا إذا تم تحديد هذا الخيار.

CHECK_LIBRARY

calibredb check_library [options]


إعمل بعض الفحوص على نظام الملفات الممثّل لمكتبة. التقارير هي invalid_titles, extra_titles, invalid_authors, extra_authors, missing_formats, extra_formats, extra_files, missing_covers, extra_covers, malformed_formats, malformed_paths, failed_folders

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

المخرجات بصيغة CSV

قائمة مفصولة بفواصل للامتدادات المراد تجاهلها. افتراضياً: الكل

قائمة أسماء مفصولة بفواصل لتجاهلها. افتراضياً: الكل

لائحة مفصولة بفوارز من التقارير. المبدئي: الكل

تنظيف قاعدة بيانات البحث عن النص الكامل. قد يكون هذا بطيئًا جدًا ويستهلك الكثير من الذاكرة، وذلك حسب حجم قاعدة البيانات.

LIST_CATEGORIES

calibredb list_categories [خيارات]


إنشاء تقرير بمعلومات الفئات في قاعدة البيانات. المعلومات تعادل ما هو معروض في متصفح الوسوم.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

لائحة مفصولة بفوارز من أسماء إيجاد الصنف. الافتراضي: الكل

المخرجات بصيغة CSV

نوع ملف CSV الذي سيولّد. الخيارات: excel, excel-tab, unix

إخراج عدد العناصر الموجودة في فئة فقط بدلاً من عدد العناصر لكل عنصر داخل الفئة

الحد الأقصى لعرض سطر واحد في المخرجات. افتراضيًا، يتم تحديد حجم الشاشة.

BACKUP_METADATA

calibredb backup_metadata [options]


انسخ البيانات الوصفية المخزنة في قاعدة البيانات احتياطيًا إلى ملفات OPF فردية في كل مجلد كتب. عادةً ما يتم ذلك تلقائيًا، ولكن يمكنك تشغيل هذا الأمر لإعادة إنشاء ملفات OPF، باستخدام الخيار --all.

لاحظ أنه عادةً لا توجد حاجة للقيام بذلك، حيث يتم نسخ ملفات OPF احتياطيًا تلقائيًا في كل مرة يتم فيها تغيير البيانات الوصفية.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

عادةً، يعمل هذا الأمر فقط على الكتب التي تحتوي على ملفات بصيغة OPF قديمة. هذا الخيار يجعله يعمل على جميع الكتب.

CLONE

calibredb استنساخ المسار / إلى / مكتبة / جديدة


ينشئ استنساخًا للمكتبة الحالية. يؤدي هذا إلى إنشاء مكتبة جديدة فارغة تحتوي على جميع الأعمدة المخصصة نفسها، والمكتبات الافتراضية، والإعدادات الأخرى مثل المكتبة الحالية.

لن تحتوي المكتبة المستنسخة على أي كتب. إذا كنت ترغب في إنشاء نسخة طبق الأصل كاملة، بما في ذلك جميع الكتب، فما عليك سوى استخدام أدوات نظام الملفات لنسخ مجلد المكتبة.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

EMBED_METADATA

calibredb embed_metadata [options] book_id


تحديث البيانات الوصفية في ملفات الكتب الفعلية المخزنة في مكتبة كاليبر من البيانات الوصفية في قاعدة بيانات كاليبر. عادةً، يتم تحديث البيانات الوصفية فقط عند تصدير الملفات من كاليبر، وهذا الأمر مفيد إذا كنت تريد تحديث الملفات في مكانها. لاحظ أن تنسيقات الملفات المختلفة تدعم كميات مختلفة من البيانات الوصفية. يمكنك استخدام القيمة الخاصة 'all' لـ book_id لتحديث البيانات الوصفية في جميع الكتب. يمكنك أيضًا تحديد العديد من معرفات الكتب مفصولة بمسافات، ونطاقات المعرفات مفصولة بشرطات. على سبيل المثال: calibredb embed_metadata 1 2 10-15 23

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

حدّث البيانات الوصفية فقط في الملفات ذات التنسيق المُحدد. حدّد هذا الخيار عدة مرات لتنسيقات متعددة. يتم تحديث جميع التنسيقات افتراضيًا.

SEARCH

calibredb search [خيارات] تعبير البحث


ابحث في المكتبة عن مصطلح البحث المحدد، مع إرجاع قائمة مفصولة بفاصلة من معرفات الكتب المطابقة لتعبير البحث. تنسيق الإخراج مفيد للتغذية في أوامر أخرى تقبل قائمة من المعرفات كمدخل.

يمكن أن يكون تعبير البحث أي شيء من لغة استعلام البحث القوية في كاليبر، على سبيل المثال: calibredb search author:asimov 'title:"i robot"'

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

الحد الأقصى لعدد النتائج المُراد إرجاعها. افتراضيًا، جميع النتائج.

FTS_INDEX

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


التحكم في عملية فهرسة البحث النصي الكامل.

enable     يشغل فهرسة FTS لهذه المكتبة disable     يوقف فهرسة FTS لهذه المكتبة status     يعرض حالة الفهرسة الحالية reindex     يمكن استخدامه لإعادة فهرسة كتب معينة أو     المكتبة بأكملها. لإعادة فهرسة كتب معينة     حدد معرفات الكتاب كحجج إضافية بعد     أمر reindex. إذا لم يتم تحديد معرفات كتب، يتم     إعادة فهرسة المكتبة بأكملها.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

سرعة الفهرسة. استخدم "سريع" للفهرسة السريعة باستخدام جميع موارد جهاز الحاسب، و"بطيء" للفهرسة الأقل استهلاكًا للموارد. يُرجى ملاحظة أنه يتم إعادة ضبط السرعة إلى "بطيئة" بعد كل استدعاء.

انتظر حتى يتم فهرسة جميع الكتب، مع عرض تقدم الفهرسة بشكل دوري

FTS_SEARCH

%p تعبير البحث rog fts_search [options]


قم بإجراء بحث نصي كامل في المكتبة بأكملها أو جزء منها.

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

طابق فقط الكلمات الدقيقة، وليس الكلمات ذات الصلة. لذا، لن يتطابق التصحيح مع التصحيح.

أدرج مقتطفات من النص المحيط بكل تطابق. لاحظ أن هذا يُبطئ عملية البحث.

ما مقدار المكتبة التي يجب فهرستها قبل السماح بالبحث، كنسبة مئوية. القيمة الافتراضية هي 90

العلامة المستخدمة للإشارة إلى نهاية الكلمة المطابقة داخل مقتطف

العلامة المستخدمة للإشارة إلى بداية الكلمة المطابقة داخل مقتطف

--output-format
التنسيق الذي سيتم به إخراج نتائج البحث. إما "text" للنص العادي أو "json" لإخراج جسون -ترميز الكائنات باستعمال جافا سكريبت-.

حدّد الكتب التي تم البحث عنها، إما باستخدام عبارة بحث أو مُعرِّفات. على سبيل المثال: ids:1,2,3 لتقييد البحث باستخدام المُعرِّفات، أو 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

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

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

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

ITEMS

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


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

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

calibredb items rename FIELD ITEM NEW_NAME

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

calibredb items remove FIELD ITEM [ITEM ...]

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

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

VIRTUAL_LIBRARIES

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


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

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

calibredb virtual_libraries list

Create a Virtual library from a search:

calibredb virtual_libraries add name search_expression

Rename a Virtual library:

calibredb virtual_libraries rename name new_name

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

calibredb virtual_libraries remove name ...

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

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

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

ANNOTATIONS

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


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

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

calibredb annotations list

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

calibredb annotations search "search expression"

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

calibredb annotations export

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

calibredb annotations import BOOK_ID FORMAT FILE

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

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

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

calibredb annotations remove ID ...

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

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

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

For search, match exact word forms instead of word stems

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

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

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

TRASH

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


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

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

calibredb trash list

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

calibredb trash restore ids

Permanently delete entries from the trash bin:

calibredb trash delete ids

Permanently delete everything in the trash bin:

calibredb trash empty

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

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

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

DATA_FILES

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


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

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

calibredb data_files list BOOK_ID

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

calibredb data_files add BOOK_ID FILE

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

calibredb data_files get BOOK_ID NAME --output FILE

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

calibredb data_files rename BOOK_ID NAME NEW_NAME

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

calibredb data_files remove BOOK_ID NAME

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

عندما تمرر وسائط إلى calibredb تحتوي على مسافات، ضع الوسائط بين علامتي اقتباس. على سبيل المثال: "/some path/with spaces"

Output the list of files as JSON

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

Local destination for the get action

Permanently delete the data file instead of using the recycle bin

Allow replacing existing files when adding, getting or renaming

Author

Kovid Goyal

Copyright

Kovid Goyal

نوفمبر 06, 2026 9.18.0