Skip to content

Provide a coder upgrade command that pulls coder directly from the server #2744

Closed as duplicate

Description

@sreya

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.

Activity

  1. self-assigned this
    on Jun 29, 2022
  2. matifali commented on Jun 30, 2022

    @matifali
    Contributor

    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.

  3. bpmct commented on Oct 25, 2022

    @bpmct
    Member

    The install script could detect if you have Coder installed & authenticated, query the version, and download the proper asset from GitHub releases.

  4. github-actions commented on Dec 25, 2022

    @github-actions
    Contributor

    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.

  5. matifali commented on Dec 26, 2022

    @matifali
    Contributor

    Bump

  6. bpmct commented on Jan 18, 2023

    @bpmct
    Member

    Kinda related #5781

  7. bpmct commented on Mar 23, 2023

    @bpmct
    Member

    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.

  8. matifali commented on Mar 23, 2023

    @matifali
    Contributor

    yeah, a simple fly version upgrade is all you need.

  9. bpmct commented on Mar 28, 2023

    @bpmct
    Member

    Perhaps we should prompt users if they want to update as well when they type their first command.

  10. matifali commented on Mar 29, 2023

    @matifali
    Contributor

    flyctl keeps it as a warning if there is a new version available for all subsequent commands.

  11. added this to the milestone on Jun 21, 2023
  12. removed this from the milestone on Jun 29, 2023
  13. matifali commented on Sep 3, 2023

    @matifali
    Contributor

    we can call it coder version upgrade maybe.

  14. stirby commented on Jan 3, 2024

    @stirby
    Collaborator

    Bumping this over #10718. Customer recently requested, it's a high priority for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions