legacy-cli icon indicating copy to clipboard operation
legacy-cli copied to clipboard

Allow to pick old versions when running `self:update`, aka. roll-back

Open gggeek opened this issue 2 years ago • 1 comments

Funnily enough, the self:update command seems to allow the user to override the current version, but it does not allow her to specify a specific version to upgrade (or downgrade) to.

It would be quite useful to be able to specify an old version as target, ie. rollback, when the latest version has f.e. introduced a bug which breaks the workflow of the developer. Atm I see no easy option for rolling back...

gggeek avatar May 17 '22 15:05 gggeek

Agreed

Currently rollback can be done with:

mv ~/.platformsh/bin/platform-old.phar ~/.platformsh/bin/platform \
&& chmod +x ~/.platformsh/bin/platform \
&& platform -V

pjcdawkins avatar May 17 '22 21:05 pjcdawkins