Skip to content

ktx run

  • Usage: ktx run [FLAGS] <SCRIPT> [ARGS]…

Compile and execute a .kts script

Arguments

<SCRIPT>

[ARGS]…

Flags

--frozen

Resolve only from lockfile; no network

--lock

Run online and refresh the lockfile

--daemon

Run via ktx daemon (eliminates compiler cold start). Also enabled by KTX_DAEMON=1.

--forward-stdin

Stream ktx's own stdin to the script in the daemon (off by default; enabling this delays process shutdown by ~300ms while waiting for stdin reads to unblock).

Released under TBD license.