설치
Linux와 macOS에서는 다음을 실행하세요:
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | shWindows에서는 PowerShell에서 다음을 실행하세요:
irm https://raw.githubusercontent.com/kylepantall/kscript/master/install.ps1 | iex스크립트가 운영체제와 CPU에 맞는 빌드를 골라 ~/.kscript/bin(Windows에서는 %LOCALAPPDATA%\Programs\kscript)에 설치해요. 그런 다음 그 폴더를 PATH에 추가해요. macOS에서는 바이너리가 공증되지 않았으므로 격리(quarantine) 플래그도 해제해요.
그런 다음 제대로 동작하는지 확인하세요:
| 명령어 | 기능 |
|---|---|
kscript --version | 설치된 버전이에요. |
설치 옵션
설치 스크립트는 몇 가지 환경 변수를 읽어요:
KSCRIPT_VERSION=v0.34.0은 최신 대신 특정 릴리스를 설치해요.KSCRIPT_INSTALL은 설치 폴더를 지정해요.KSCRIPT_NO_MODIFY_PATH=1을 설정하면 PATH를 건드리지 않아요.
curl -fsSL https://raw.githubusercontent.com/kylepantall/kscript/master/install.sh | KSCRIPT_VERSION=v0.34.0 sh