Skip to content

enhance the san upgrade/update cli #309

Description

@hchenxa

Duplicate check

  • I searched existing issues and discussions and didn't find a duplicate

Problem

san update
• Check for new releases and upgrade san itself
• Support the following modes:
• san update — check and upgrade to the latest stable release
• san update --check — only check for updates, do not download
• san update --version v1..2.3 — upgrade to a specific version
• san update --force — force overwrite the local binary
• Automatically back up the current binary before upgrading
• Roll back automatically on failure

Proposed solution

Example:

$ san update --check
Current version: 1.2.3
Latest version:  1.3.0
A new release is available. Run `san update` to upgrade.

$ san update
Downloading san v1.3.0...
Backup created at /usr/local/bin/san.bak
Update successful. Please restart your shell.

Alternatives considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions