ktx npx for kotlin and the JVM! Install and execute Maven Central packages or kotlin scripts just like any other command line utility. Installation sdk install ktx curl https://raw.githubusercontent.com/mpetuska/ktx/master/scripts/install.sh | bash curl https://raw.githubusercontent.com/mpetuska/ktx/master/scripts/install-snapshot.sh | bash Uninstallation # Check which versions are installed sdk list ktx # Uninstall desired version(s) sdk uninstall ktx < version > curl https://raw.githubusercontent.com/mpetuska/ktx/master/scripts/install.sh | bash $HOME /.ktx/uninstall.sh Usage After installation a new ktx command will appear in your terminal. The cli is self-documented so to explore its features simply use -h argument on any command. e.g. ktx -h . Main ones to know, however, are ktx run and ktx install which allow you to execute or install any maven package or kotlin script from the web or your local file system. ktx run https://raw.githubusercontent.com/mpetuska/ktx/master/kts-samples/gw.main.kts -- clean build -Pversion= " 0.0.0 " ktx install https://raw.githubusercontent.com/mpetuska/ktx/master/kts-samples/gw.main.kts # Installed script usage gw clean build -Pversion= " 0.0.0 " ktx clean --scripts ktx install https://raw.githubusercontent.com/mpetuska/ktx/master/kts-samples/gw.main.kts --alias=super-wrapper super-wrapper clean build -Pversion= " 0.0.0 " ktx install org.jetbrains.kotlin:kotlin-compiler:1.8.0 --alias=kotlin-compiler kotlin-compiler -version For sample scripts to play with you can have a look at kts-samples
First seen: 2025-10-13 20:26
Last seen: 2025-10-14 00:26