quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.82k stars 2.69k forks source link

Ability to self update the Quarkus CLI #31690

Open ia3andy opened 1 year ago

ia3andy commented 1 year ago

Description

It would be nice to have a way to self update the Quarkus CLI version.

in yarn they call it self-update in brew they call it update but that is confusing IMO

maybe quarkus update-cli ?

Implementation ideas

We could detect the way it was installed (jbang, ...) and handle a few of them and redirect to the guide if it's not handled.

quarkus-bot[bot] commented 1 year ago

/cc @ebullient (cli), @maxandersen (cli,jbang), @quarkusio/devtools (jbang)

maxandersen commented 1 year ago

'quarkus version --update' ?

Though this is non trivial as you can't self-update easily on all platforms and/or install systems.

Can always print instructions based on best guess on how it's installed.

holly-cummins commented 1 month ago

Copying a comment from #33708, echoing something from @maxandersen's comment above. The "best guess about how it's installed" is an important value add.

"Before I can work out how to perform an update, I need to know how I installed this tool in the first place. The docs don't help me know what I might have done, so my only option is to do forensics on my install to look for fingerprints of a package manager and do the appropriate update command. If I guess the wrong package manager, I may end up with two instances of quarkus on my path, and still be using the stale one."