In some situations, a proto upgrade might fail due to the proto.exe being in use by another process.
It would be useful to still be able to check whether an update is available, without applying the update.
❯ proto upgrade --check-only
A newer version of proto is available: 0.39.1 -> 0.39.2
A variation of this could also be used for scripting purposes, by exiting with an error if proto is outdated:
❯ proto upgrade --check-outdated
(exit code 1)
Your proto version is outdated.
A newer version of proto is available: 0.39.1 -> 0.3.29
❯ proto upgrade --check-outdated
(exit code 0)
You're already on the latest version of proto!
In some situations, a
proto upgrade
might fail due to theproto.exe
being in use by another process.It would be useful to still be able to check whether an update is available, without applying the update.
A variation of this could also be used for scripting purposes, by exiting with an error if proto is outdated: