The command line
| Command | Before | Now |
|---|---|---|
kscript check, kscript queue |
--format text|json |
--output text|json |
kscript check |
--warnaserror |
--warnings-as-errors |
kscript openapi |
--yaml, --json |
--output yaml, --output json |
kscript make, kscript docs, kscript mcp |
--format kscript|xml |
--syntax kscript|xml |
kscript convert |
--to kscript|xml |
--syntax kscript|xml |
kscript make |
kscript make:component Hero |
kscript make component Hero |
kscript update |
--version v0.34.0, --tag v0.34.0 (replaced the installed kscript with that release) |
kscript version use 0.34.0, which keeps both side by side so you can switch back (see Switching versions) |
kscript version |
printed the version number | kscript --version prints the number; kscript version shows which version runs here and what chose it |
| Any command | --debug (show the .NET stack trace behind an error) |
--stack-trace |
| Any command | KSCRIPT_DEBUG=1 |
KSCRIPT_STACK_TRACE=1 |
--output is always how the result is printed, and --syntax is always which of the two forms a script is written in.
--debug now runs a script in the terminal debugger. With any other command it is an error that names --stack-trace.
The keys kscript check --output json writes are snake_case: end_line, end_column and new_text (they were endLine, endColumn and newText), like every other key in KScript's own JSON. Exit codes are the same for every command: 1 when a check or a test failed, 2 for a mistake on the command line or in the settings, 3 when a script stopped with an error.