View Single Post
Old 10-19-2021, 09:36 PM   #1
johnmcd
Member
johnmcd began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
Convert book format via command line

Hi all,

I've been playing around with writing some utilities for a collection of ebooks, mostly just to get familiar with the various command line options for calibre. I can successfully add a .azw book with 'calibredb add', get the returned ID and update it's metadata with 'calibredb set_metadata'. What I'd like to do now is to convert the book to epub format so I have both formats within calibre. I looked at both the 'ebook-convert' and the 'calibredb add_format' options, and they both require that you specify an input file. Is there any way via the command line to have calibre convert an ebook already in its library to a different format? This would be the same as selecting a book via the GUI and clicking on 'Convert books'.

Thanks

John
johnmcd is offline   Reply With Quote