|  09-29-2023, 07:04 PM | #1 | 
| Member  Posts: 12 Karma: 10 Join Date: Aug 2023 Device: Kindle | 
				
				Anonymous content-server and add books via CLI
			 
			
			Hi guys - Hope everyones good... TL;DR: I want to keep my content-server with no-auth and want to be able to run scripts to add books via the CLI, but i need to have auth enabled to use the CLI to make changes to the library. How do i fix this? The content-server is served locally with no auth which i've done on purpose as it's main use it to get books onto a kindle via the experimental web-browser and so not having to put in a ridiculously long password on a kindle is the goal. However, i want a script to monitor multiple watch folders and upload and add books automatically, however the 'calibredb add' command always throws 'forbidden' unless i have auth enabled. Is it possible to keep my no-auth content server and simply use an auth account to make changes to the library via the CLI. (eg. when adding a book etc.) And if not, why not? | 
|   |   | 
|  09-29-2023, 10:01 PM | #2 | 
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | 
			
			hi, I never used this option when running the content server, but I'd guess you need  --trusted-ips: https://manual.calibre-ebook.com/gen...er-trusted-ips It can be found also in Calibre GUI -> Sharing over the net -> Advanced tab | 
|   |   | 
| Advert | |
|  | 
|  10-04-2023, 10:58 AM | #3 | 
| Member  Posts: 12 Karma: 10 Join Date: Aug 2023 Device: Kindle | 
			
			In the end there were a few options hiding in there that i managed to use! Thanks!
		 | 
|   |   | 
|  | 
| Tags | 
| calibredb calibre-server, cli, script-error | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Best device for accessing Calibre as a content server only / Best way to add content | yelt | Calibre | 1 | 10-01-2020 09:53 PM | 
| Content server: Add a button to delete all locally cached books | stumped | Calibre | 11 | 03-07-2020 02:08 AM | 
| calibredb cannot add with content server running | apiontek | Calibre | 10 | 08-04-2017 04:50 AM | 
| Add Content Server as a library ? | akmeltem | Library Management | 1 | 06-25-2017 08:46 AM |