wallabag / docker

Official docker-composer for wallabag.
572 stars 150 forks source link

CLI Commands/docker? #379

Closed TiboLR34 closed 9 months ago

TiboLR34 commented 9 months ago

Hi,

I haven't been able to find out how to run CLI commands of my docker wallabag container ? https://doc.wallabag.org/en/admin/console_commands.html

I'd like to give admin "super" promotion to a new user and then suppress "wallabag" user.

docker exec -it wallabag-wallabag-1 "bin/console help" keeps telling me no such fil or directory

Thanks in advance

j0k3r commented 9 months ago

You should use:

docker exec -t NAME_OR_ID_OF_YOUR_WALLABAG_CONTAINER /var/www/wallabag/bin/console help --env=prod
TiboLR34 commented 9 months ago

indeed ! docker exec -t /var/www/wallabag/bin/console fos:user:promote XXXX --env=prod --super worked doesn't work without env=prod whereas help says it should be default ?