Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger auto-update via console #19151

Open
taladar opened this issue Apr 28, 2022 · 4 comments
Open

Trigger auto-update via console #19151

taladar opened this issue Apr 28, 2022 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@taladar
Copy link

taladar commented Apr 28, 2022

Matomo has an auto-update functionality that includes the download of the latest version in the web interface.

As far as I can tell there is no way to trigger this process completely from the CLI. All guides I found suggest downloading
the update myself, unpacking it, then running the core:update command.

It would be useful to have the full auto-update available via console to be able to automate the process without prompting the user to login and click the auto-update button and without re-implementing part of the functionality already implemented in the auto-update in Matomo itself.

@taladar taladar added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Apr 28, 2022
@StefanS-O
Copy link

+1
Wanted to implement an Ansible task to update Matomo and realized console core:update doesn't do much.
I expected that it would have the same functionality as the web interface update.

@chriscroome
Copy link

The console core:update comand does upgrade the database, without it automated upgrades would probably be a lot harder...

FWIW I have written a Ansible Matomo role that downloads and unarchives Matomo and then rsync's it over the top of the old version and updates the database and then deletes the unneeded files using scripts for each upgrade.

However having more and better command line options would be very welcome, in addition to the ability to update Matomo core it would be nice to be able to list available plugin updates and update plugins -- I haven't any Ansible for automating this yet.

@StefanS-O
Copy link

StefanS-O commented May 17, 2022

Thanks @chriscroome i will take a look! Also i think a better name would be migrations:migrate for what the core:update task is doing. A core update it is not :D

@chriscroome
Copy link

Also i think a better name would be migrations:migrate for what the core:update task is doing.

I'd vote for core:update-db because matching the WP-CLI command might leave more spare space in my brain for other things ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

4 participants