CLI Commands
Kode provides a comprehensive command-line interface for working with your programs.
Commands Overview
kode <file.kode>
Run a source file directly
bash
kode hello.kodekode build <file.kode>
Compile to .kbc bytecode
bash
kode build hello.kode # produces hello.kbckode <file.kbc>
Execute compiled bytecode
bash
kode hello.kbckode check <file.kode>
Type-check without running
bash
kode check myprogram.kodekode fmt <file.kode>
Format source files
bash
kode fmt myprogram.kodekode new <name>
Scaffold a new project
bash
kode new my-projectkode clean
Remove build artifacts
bash
kode cleankode env
Show compiler environment info
bash
kode envkode doctor
Diagnose environment issues
bash
kode doctorkode version
Print version information
bash
kode version