KScript docs
EN

Install and editors

Updating

kscript update installs the latest release when it is newer than yours:

CommandWhat it does
kscript updateInstall the latest release if it's newer.
kscript update --checkOnly report whether there is one.
kscript update --no-ideLeave the editor extension alone.

To run an older release, or a project's own version, use kscript version instead: it keeps each version beside the one you have, so you can switch back.

It replaces the binary in place, and clears a default you chose with kscript version use, so the computer runs the new release. A project's own version, in its kscript.json, stays as it is. On Windows, the running kscript.exe is renamed to kscript.exe.old, and deleted the next time kscript starts. Set GITHUB_TOKEN to avoid GitHub's rate limit, such as on a shared CI runner.

kscript update also brings the editor extension up to the same release in every editor that already has it (VS Code, Insiders, Cursor, VSCodium and Windsurf), and tells you which ones it updated. Editors without the extension are left alone. This happens even when the binary is already current, so an extension that fell behind is caught up. --check reports stale extensions too, and --force reinstalls them. Reload the editor window afterwards.