Installing
On Linux and macOS, run:
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | shOn Windows, run this in PowerShell:
irm https://raw.githubusercontent.com/kylepantall/kscript/master/install.ps1 | iexThe 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:
| Command | What it does |
|---|---|
kscript --version | The version you have. |
Install options
The install scripts read a few environment variables:
KSCRIPT_VERSION=v0.34.0installs a specific release instead of the latest.KSCRIPT_INSTALLchooses the folder.KSCRIPT_NO_MODIFY_PATH=1leaves your PATH alone.
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | KSCRIPT_VERSION=v0.34.0 sh