ksp update
DocsCLIksp update

ksp update

Command Reference

Check GitHub releases for a newer version of `ksp` and self-update the binary in-place safely.

System & Environment

Purpose

Check GitHub releases for a newer version of `ksp` and self-update the binary in-place safely.

Syntax

Command-line specification
bash / powershell
ksp update [OPTIONS]

Options & Flags

Option FlagDescription
--checkCheck if an update is available without actually downloading or replacing the binary.
--channel <NAME>Update channel: `stable`, `beta`, or `nightly`.

Example Usage

Example command
ksp update --check

Expected Output

  [+] Checking latest release on https://www.kspprotocol.dev/releases...
  [✔] Current version: v0.1.0 (Latest stable release)
  [i] You are already running the most up-to-date version of KSP CLI!
Implementation Notes

On Windows, our smart self-cleanup mechanism safely handles active file lock situations automatically during updates.