Skip to content

Upgrade to specific version #2175

@jasondentler

Description

@jasondentler

In our CI server, we pin the version of sentry-cli for repeatability. Currently, our build script has to do the following:

  1. Check if sentry-cli is installed at all.
  2. Move package.json if it exists (because of Can't uninstall or upgrade Sentry CLI if install folder contains package.json, even if not managed by npm/yarn #2174)
  3. Check the version number of that installed version.
  4. Compare the installed version number to the desired version number
  5. Uninstall if we have the wrong version
  6. Install the desired version
  7. Move package.json back

Adding a --version option to sentry-cli update would allow us to simply update to the desired version.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions