BookStackApp / system-cli

MIGRATED TO CODEBERG -- A simple CLI to manage BookStack instances
https://codeberg.org/bookstack/system-cli
MIT License
5 stars 0 forks source link

Add better default app dir detection #9

Closed ssddanbrown closed 1 year ago

ssddanbrown commented 1 year ago

Running externally within docker environment ends up with this:

$ docker exec -it bookstack_lsiodev php /app/www/bookstack-system-cli backup
WARNING: This CLI is in early alpha testing.
There's a high chance of running into bugs, and the CLI API is subject to change.

An error occurred when attempting to run a command:

Could not find a valid BookStack installation

Same when testing in-container, when running from via /app/www/bookstack-system-cli backup. Have not yet re-tested that using phar in non-docker environment. It finds the installation when accessing the docker container and running the CLI from the app directory.