This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Zollerboy1
Zollerboy1

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?

JeffGoldblum
JeffGoldblum

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.

Zollerboy1
Zollerboy1

Okay, thank you for the quick reply.

I will look into using composer then.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.