Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2021, 03:50 PM   #1
johnmcd
Member
johnmcd began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
Library folder via command line

Hi all,

Another command line question - is there any way to determine what folder Calibre is using for its library from the command line? I went through all of the command line utilities and I couldn't find anything.

Thanks!

John
johnmcd is offline   Reply With Quote
Old 10-21-2021, 06:33 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You might search global.py.json (in the config folder)
Code:
 "library_path": "C:\\Users\\xxxx\\yyyy\\MainLib",
MainLib is mine

A number of CLI modules require --withlibrary
theducks is offline   Reply With Quote
Old 10-21-2021, 06:55 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre can use multiple libraries. So there is no one folder. If you want to know the path to the current (aka last used) library, just use

calibredb list -f formats

which assuming the library is not empty will give you the paths to all the ebook files in the current library, from which it is trivial to get the path of the library folder itself.
kovidgoyal is online now   Reply With Quote
Old 10-21-2021, 08:38 PM   #4
johnmcd
Member
johnmcd began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
Thank you both.
johnmcd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there good examples of command line importing / metadata / library management DictatorAlly Library Management 8 05-17-2020 04:21 PM
Command line : adding books to the main library Bertrand Calibre 2 12-30-2018 11:36 AM
Is there a way to execute a non-root command without access to command line Galunid Kindle Developer's Corner 4 05-15-2018 07:50 PM
[Solved] Open Library Command-line tanstaafl1963 Library Management 2 01-05-2014 10:48 PM
Create New Library from Existing Library at Command Line BetterRed Library Management 28 07-28-2013 12:26 AM


All times are GMT -4. The time now is 01:19 AM.


MobileRead.com is a privately owned, operated and funded community.