BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

System CLI: `download-vendor` command feedback

Open ssddanbrown opened this issue 9 months ago • 8 comments

As per our blogpost here: https://www.bookstackapp.com/blog/php-dependency-improvements/

This is a thread to collection feedback about use of the download-vendor System CLI action, available from BookStack v25.02.1.

Once we've had a few rounds of feedback and confirmation of stable use, our update & install guidance, including future scripts, can be updated to make use of this instead of composer.

ssddanbrown avatar Mar 17 '25 17:03 ssddanbrown

Just used to upgrade to v25.07.2 from .1. No problems encountered. It did warn Alpha API during upgrade

Kirrus-Indiestone avatar Aug 29 '25 19:08 Kirrus-Indiestone

I went from I believe 25.07 to 25.07.2 without a hitch.

The process felt very similar to the original method (I actually did one wiki using the old method and then a backup one using the alpha method) other than it warning of being alpha and seeing the bookstack URL.

All in all, I'd say it was pretty seamless.

The only way I could see it being better/easier is it it'd also clear the caches as part of the process (maybe as a selectable option):

  • php artisan cache:clear
  • php artisan config:clear
  • php artisan view:clear

tjhart85 avatar Sep 16 '25 17:09 tjhart85

Just updated to 25.07.2 - worked fine.

brynmoorhouse avatar Sep 17 '25 12:09 brynmoorhouse

Works great! I do have a suggestion: First check if there is anything to migrate, and if so, ask the question if you wish to migrate or not. Now you get the question, it then checks and says "INFO Nothing to migrate."

theQuikest avatar Oct 22 '25 09:10 theQuikest

Updated successfully from 25.07.3 to 25.11.1 without issue. I do have a pretty basic Bookstack setup and all seems to be ok.

vrKiter avatar Nov 13 '25 03:11 vrKiter

I also just wanted to let you know, that we've been using the new cli command for the last couple of version upgrades and did not have any problems.

I also agree with the others that moving the other 4 artisan commands into the cli or calling them through a single command could be an improvement, even if it's not strictly necessary

jr-timme avatar Nov 21 '25 12:11 jr-timme

Thanks all so far for the input. I have started using this command in scripts, and it's being used in some other places (like docker image builds) to roll it out further. I've noted this as an option in our update docs now, and will probably make it the default early next year, especially as I'll use it in the Ubuntu 26.04 install script.

I also agree with the others that moving the other 4 artisan commands into the cli or calling them through a single command could be an improvement, even if it's not strictly necessary

Within the system CLI there is already an update command which will run everything needed under-the-hood: https://www.bookstackapp.com/docs/admin/system-cli/#update This still uses composer though, so I'll add an issue to move that over to use download-vendor logic instead.

ssddanbrown avatar Nov 23 '25 12:11 ssddanbrown

Just used it to upgrade to version v25.11.4. Worked flawlessly. Thank you ;)

zinksa avatar Nov 26 '25 17:11 zinksa

When running: ./bookstack-system-cli download-vendor I receive the following error message: Failed to download ZIP file from https://files.bookstackapp.com/vendor/v25.11.6.zip

disposer-cloud avatar Dec 15 '25 01:12 disposer-cloud

@disposer-cloud Are you able to access that link in the browser from where you are? From the server, are you able to wget https://files.bookstackapp.com/vendor/v25.11.6.zip without issue?

ssddanbrown avatar Dec 15 '25 12:12 ssddanbrown

FWIW, it worked for me this morning going from 25.11.3 to 25.11.6 without issue.

tjhart85 avatar Dec 15 '25 13:12 tjhart85

Thanks for the quick reply. I was thinking it was dns as it's always dns however it seems this time it was an egress geo block. I will re-run the update tonight and let you know!

disposer-cloud avatar Dec 15 '25 14:12 disposer-cloud

Should have known, the geo block was the issue. I was able to upgrade from 25.05.2 to v25.11.6 with no issues.

disposer-cloud avatar Dec 16 '25 00:12 disposer-cloud