![]() |
#1 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
get the path to the book with calibredb list then convert it with ebook-convert and then add the converted file with calibredb add_format
Though better is to convert the book before adding and then add both files as a single book with calibredb add -r |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
|
Thank you!
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert command line autotoc | mccnews | Conversion | 3 | 10-31-2012 10:32 AM |
How to only get command line tool ebook-convert installed. | okidogi | Calibre | 4 | 06-23-2011 10:59 AM |
ABBYY Finereader - Possible to command line/auto convert? | tessel | Workshop | 3 | 04-06-2011 11:08 AM |
How to specify command line option for epub format | kiklop74 | Calibre | 15 | 05-14-2010 04:24 AM |
Command Line Options for ebook-convert | godel10 | Calibre | 14 | 08-08-2009 08:28 AM |