The tech command-line tool is your portal for executing, compiling, formatting, and analyzing TechScript code.
-V, --version: Print version information and exit.-h, --help: Print help details.runExecutes a TechScript source file or compiled bytecode file.
tech run main.txs
tech run main.txc
Flags:
--debug: Run VM with debugging telemetry enabled (shows instruction pipeline, stack pushes/pops).buildCompiles a .txs source file into binary bytecode .txc.
tech build main.txs -o main.txc
replLaunches the interactive shell (Read-Eval-Print Loop).
tech repl
fmtAuto-formats TechScript source code files following style rules.
tech fmt main.txs
tech fmt .
lintAnalyzes code for deprecated syntax, potential performance traps, and variable errors.
tech lint main.txs
testRuns all unit tests in the current package or directory.
tech test
studioLaunches TechScript Studio IDE.
tech studio
evalRuns an inline snippet of code.
tech eval "say 5 + 10"