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
[5.1] CLI: Adding command to manage Joomla core update channels #42597
[5.1] CLI: Adding command to manage Joomla core update channels #42597
Conversation
I have tested this item ✅ successfully on b4ce80a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42597. |
I tested following the Testing Instructions. As part of the test, I set the update channel to |
Is it removed when you do the same in the web interface? |
@brianteeman |
I have tested this item ✅ successfully on b4ce80a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42597. |
thought so. some would consider it a good feature to have |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42597. |
Thanks! |
Summary of Changes
On the CLI, we can check for updates of the core and we can run the update as well, but we actually don't know what we are updating to, what update channel we are on and what the update process is actually doing right now. This PR tries to fix some of the issues by allowing to manage the update channels.
By calling
php cli/joomla.php core:update:channel
, you get the update channel the site is currently on. By adding the parameterdefault
,next
,testing
orcustom
, you can set the update channel to that respective one. Forcustom
you need to also add the--url=<url>
parameter for the custom URL.Testing Instructions
php cli/joomla.php core:update:channel
to display the currently configured update channel.php cli/joomla.php core:update:channel next
to set it to the "next" update channel. Check that the params column in#__extensions
for thecom_joomlaupdate
row contains the updatedupdatesource
value and thatlocation
column forJoomla! Core
in#__update_sites
containshttps://update.joomla.org/core/sts/list_sts.xml
as URL.php cli/joomla.php core:check-updates
to check for updates from the new update source.Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed