Skip to content

Add krknctl upgrade command to support CLI self-update #111

@ddjain

Description

@ddjain

Context

Currently, krknctl displays a warning when a newer version is available:

📣📦 A newer version of krknctl is available.

However, users must manually download and install the new version.

Goal

Introduce a new CLI command:

krknctl upgrade

This command should:

  • Check the latest release from GitHub
  • Compare it with the current installed version
  • Download the latest binary
  • Replace the existing binary
  • Confirm successful upgrade

Acceptance Criteria

  • Command successfully upgrades the CLI binary
  • Works across supported OS platforms
  • Graceful handling when already on latest version
  • Clear success/failure messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions