#1 2026-04-20 21:40:48

MarcRJacobs
Member
Bavaro, Dominican Republic
2013-05-27
48

CLI Access

Hi,

I'm on Piwigo 16.3.0 and have a number of large diectories of photos to import.

Is it possible to get the original CLI that we had in older versions to get around the browsers timeouts

Piwigo 16.3.0 Check for upgrade
Installed on 22 January 2026, 2 months 4 weeks 1 day ago
Operating system: Linux
PHP: 8.3.30 (Show info) [2026-04-20 19:39:44]
MySQL: 8.0.45-0ubuntu0.24.04.1 [2026-04-20 15:39:44]
Graphics Library: External ImageMagick 6.9.12-98
Cache size N/A   never calculated Refresh

Additional Pages
Exif View
Exiftool GPS
Exiftool Keywords
LocalFiles Editor
Personal Favicon
VideoJS

Piwigo URL: https://photos.marcrjacobs.com

Offline

 

#2 2026-04-23 00:58:30

samwilson
Member
Fremantle, Western Australia
2014-02-06
45

Re: CLI Access

Is that  a server-side CLI or something you ran on your local machine to upload?

Offline

 

#3 2026-04-23 03:10:11

MarcRJacobs
Member
Bavaro, Dominican Republic
2013-05-27
48

Re: CLI Access

Hi;

No, there used to be a CLI that was included with Piwigo distros. If you had access to the server, you could use the CLI in import photos into Piwigo, instead of Sync. The advantage was the large folders would not time out, like the web interface does. I loved it, but it's no longer included and none of the DEVs have responded yet.

Offline

 

#4 2026-04-23 04:55:05

samwilson
Member
Fremantle, Western Australia
2014-02-06
45

Re: CLI Access

That does sound useful!

Offline

 

#5 2026-04-23 07:28:31

polowigo
Member
France
2022-08-06
35

Re: CLI Access

Hi,

If you talk about pLoader, it has been obsolete for a very long time.

You can take a look to [extension by mhelleboid] Piwigo Remote Sync

Last edited by polowigo (2026-04-23 07:29:15)

Offline

 

#6 2026-04-23 17:19:50

MarcRJacobs
Member
Bavaro, Dominican Republic
2013-05-27
48

Re: CLI Access

No, I was actually referring to /admin/cli.php. It was a wondeful tool and I have no idea why it's no longer available, nor why anyone involved won't respond.

In my case, I have my own server, and I upload direct from Lightroom Classic folders to Piwigo's galleries folder, then run Sync to bring them in. It works great unless there are too many photos and the then one of two things happen. Either the browser times out, or PHP leaks enough memory that it can no longer function. Then, I just hit it with a bug hammer:
sudo systemctl restart php8.3-fpm

and I'm, good to go again.

The CLI eliminated browser time outs, so 505 of the problems go away.

Oh, and as to Piwigo Remote Sync... My problem isn't getting files up to Piwigo. My Lightroom Classic and web server are on the same LAN. Plus, it doesn't look like this is being maintained anymore, not sure.

Last edited by MarcRJacobs (2026-04-23 17:21:37)

Offline

 

#7 2026-04-24 07:35:28

polowigo
Member
France
2022-08-06
35

Re: CLI Access

MarcRJacobs wrote:

No, I was actually referring to /admin/cli.php.

In which version of Piwigo?

And in which way browser time out is involded in synchro?

I can see this script: tools/piwigo_upload.pl. I don't know if it is suitable.

Last edited by polowigo (2026-04-24 07:41:37)

Offline

 

#8 2026-04-24 12:44:36

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14057

Re: CLI Access

MarcRJacobs wrote:

No, I was actually referring to /admin/cli.php. It was a wondeful tool and I have no idea why it's no longer available, nor why anyone involved won't respond.

Which AI chatbot did you use to get this information? :-D admin/cli.php never existed. Ever.

There is no CLI in Piwigo. It "may" be a good idea to have a CLI. For the synchronization and maybe for other actions (such as release update, but certainly for many other actions).

tools/piwigo_upload.pl or tools/piwigo_remote.pl are nice and can be run in command line BUT they rely on Piwigo API requested through HTTP. So if you have a PHP timeout due to limitation on php-fpm or nginx/apache, these tools have no "extra power" over using the web interface.

A true CLI tool would directly call Piwigo PHP functions, without requesting its API.

Offline

 

#9 2026-04-24 14:05:49

MarcRJacobs
Member
Bavaro, Dominican Republic
2013-05-27
48

Re: CLI Access

Hi;

So sorry for the misunderstanding, and you are correct, it was an AI engine, 2 in fact. ChatGPT was the main one and I validated with a second but I can't swear I remember which now. I think it was Gemini.

Anyway, it seems to be a tool that no one is interested in but me, so....

Any for me, it's just because I'm leaving LrC and exporting nearly 400 albums and 149,000+ photos and videos. The good news i sthat I only have to do it once.

Then, I'm maintain my collection internally and Piwigo is for my family.

BTW, my extended family, spanning nearly 20 countries, absolutely love Piwigo.

Thanks for the reply, and again, sorry for the misunderstanding.

Marc

Offline

 

Board footer

Powered by FluxBB