Hardware: computer YunoHost version: 11.2.16 I have access to my server : Through SSH Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no Photoprism: 2022.09.01~ynh4
Description of my issue
I would like to try using the Photoprism CLI (to index pictures, try to check if it is possible to add users, …). But I get nothing at all
root@yunohost:~# sudo -u photoprism /var/www/photoprism/live/bin/photoprism version
root@yunohost:~# sudo -u photoprism /var/www/photoprism/live/bin/photoprism users list
I get the help text though:
root@yunohost:~# sudo -u photoprism /var/www/photoprism/live/bin/photoprism users list -h
NAME:
photoprism users list - Lists registered users
USAGE:
photoprism users list [arguments...]
Nothing in the logs…
Do you know how to use the CLI on yunohost?
I’ve just tried. Indeed, the command for listing the user doesn’t output anything.
For the version, it works but you have to write photoprism --version in the command (so the same as yours, but with – before version).
To answer your question: it’s currently not possible to add users. It should be possible soon™ (currently, the photoprism package is verry old; it will be updated when Yunohost upgrades to Bookworm, but there is no ETA for that).
# set -o allexport ; source /var/www/photoprism/.env ; set +o allexport
# /var/www/photoprism/live/bin/photoprism users list
INFO[2024-06-25T07:15:53Z] PhotoPrism® needs your support!
INFO[2024-06-25T07:15:53Z] Visit https://photoprism.app/membership to learn more.
INFO[2024-06-25T07:15:53Z] found 1 user
ID LOGIN NAME EMAIL
1 admin Admin
INFO[2024-06-25T07:15:53Z] closed database connection