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.kode

kode build <file.kode>

Compile to .kbc bytecode

bash
kode build hello.kode    # produces hello.kbc

kode <file.kbc>

Execute compiled bytecode

bash
kode hello.kbc

kode check <file.kode>

Type-check without running

bash
kode check myprogram.kode

kode fmt <file.kode>

Format source files

bash
kode fmt myprogram.kode

kode new <name>

Scaffold a new project

bash
kode new my-project

kode clean

Remove build artifacts

bash
kode clean

kode env

Show compiler environment info

bash
kode env

kode doctor

Diagnose environment issues

bash
kode doctor

kode version

Print version information

bash
kode version