You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a coder upgrade command that pulls coder directly from the server #2744
It would be great if the CLI provided a way to download the client directly from a deployment. While curl -L https://coder.com/install.sh | sh is great for getting started, for users who did not set up the deployment it still requires some work to determine the correct version their deployment is running and then ensure they download the correct client. It also has the added benefit of making it super easy to switch seamlessly between multiple deployments. Just run coder upgrade --url "https://my-coder.com" and your coder binary is now synced with the deployment you plan on interfacing with.
Reacted by Fabien Poussin, Atif Ali, Ben Potter, Geoffrey Huntley and Stephen Kirby
I am doing this for all my end devices using curl -o .local/bin "https://my-coder.com/bin/coder-linux-amd64" && chmod +x .local/bin/coder
This works for first install as well as upgrades.
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.
I was using the Fly CLI recently and was surprised to find that their upgrade command would also use the appropriate package manager to get the latest version (brew, apt, etc). I remember the v1 CLI would refuse to upgrade if it detected that Coder used a package manager.
Activity
matifali commentedon Jun 30, 2022
I am doing this for all my end devices using
curl -o .local/bin "https://my-coder.com/bin/coder-linux-amd64" && chmod +x .local/bin/coderThis works for first install as well as upgrades.
bpmct commentedon Oct 25, 2022
The install script could detect if you have Coder installed & authenticated, query the version, and download the proper asset from GitHub releases.
github-actions commentedon Dec 25, 2022
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.
matifali commentedon Dec 26, 2022
Bump
bpmct commentedon Jan 18, 2023
Kinda related #5781
bpmct commentedon Mar 23, 2023
I was using the Fly CLI recently and was surprised to find that their upgrade command would also use the appropriate package manager to get the latest version (brew, apt, etc). I remember the v1 CLI would refuse to upgrade if it detected that Coder used a package manager.
matifali commentedon Mar 23, 2023
yeah, a simple
fly version upgradeis all you need.bpmct commentedon Mar 28, 2023
Perhaps we should prompt users if they want to update as well when they type their first command.
matifali commentedon Mar 29, 2023
flyctlkeeps it as a warning if there is a new version available for all subsequent commands.matifali commentedon Sep 3, 2023
we can call it
coder version upgrademaybe.stirby commentedon Jan 3, 2024
Bumping this over #10718. Customer recently requested, it's a high priority for them.