View Single Post
Old 11-02-2022, 09:47 AM   #1
billalive
Junior Member
billalive began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2022
Device: none
Question How to Run Any (Non-GUI) Plugin From the Command Line?

Hi! First off, thank you for all your work on Calibre, and for making it open-source. A truly fantastic tool.

Is it possible to run all or most plugins from the command line?

For instance, I would like to export my BibTeX catalog from the command line.

That plugin code seems to live here:

https://github.com/kovidgoyal/calibr...logs/bibtex.py

So I thought I might do something like:

Code:
calibre-debug /usr/lib/calibre/calibre/library/catalogs/bibtex.py -- --verbose --citation-template "{author}-{title}-{pubdate}"
However, nothing happens.

I suspect that I need to execute the actual run() function in this plugin, and this would probably be a fairly trivial Python script.

But is there already an idiom for running a Calibre plugin like this from the command line?

Thank you!
billalive is offline   Reply With Quote