platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
222 stars 121 forks source link

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

Open gggeek opened 2 years ago

gggeek commented 2 years ago

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...

pjcdawkins commented 2 years ago

Agreed

Currently rollback can be done with:

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