KScript docs
EN

Install and editors

Installing

On Linux and macOS, run:

Shell
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | sh

On Windows, run this in PowerShell:

PowerShell
irm https://raw.githubusercontent.com/kylepantall/kscript/master/install.ps1 | iex

The scripts pick the build for your operating system and CPU and install it to ~/.kscript/bin (on Windows, %LOCALAPPDATA%\Programs\kscript). They then add that folder to your PATH. On macOS they also clear the quarantine flag, since the binary isn't notarized.

Then check it worked:

CommandWhat it does
kscript --versionThe version you have.

Install options

The install scripts read a few environment variables:

  • KSCRIPT_VERSION=v0.34.0 installs a specific release instead of the latest.
  • KSCRIPT_INSTALL chooses the folder.
  • KSCRIPT_NO_MODIFY_PATH=1 leaves your PATH alone.
Shell
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | KSCRIPT_VERSION=v0.34.0 sh