Skip to main content
Klyx provides a command() DSL for running programs and shell commands. It supports synchronous execution, asynchronous spawning, and streaming output via Kotlin coroutines.

Running commands

Basic execution

Shell commands

Adding arguments

Environment variables

Working directory

Synchronous output

Streaming output

Spawning processes

Utility functions

Advanced execution

Stdin sources

Stdio destinations

Last modified on July 11, 2026