This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello,
I want to write an artisan command, which updates a Plugin to a specified version.
Is this possible?
I found the VersionManager::updatePlugin()
function, which can stop at a specified version, but if I'm correct, it only does the database migrations.
The UpdateManager
class, which does the downloading and extracting of the Plugin files, does not seem to have such an option.
Is there just no function for this, or does the gateway server not even store all former Plugin versions but only the last?
No, it's not possible to do this through the marketplace, AFAIK only the most recent stable and pending builds are retained. If you want to be more selective about the exact version of a plugin you're installing, use Composer to load the plugin instead.
1-3 of 3