Skip to main content

First program

Create a new project

kaede new hello_kaede
cd hello_kaede

Kaede creates a project with a src/ directory and a starter main.kd file:

fun main() {
println("hello, world!")
}

Run it

kaede run

The run command builds the project and then runs build/main. With the default scaffold, it prints:

hello, world!

If you want the steps separately:

kaede build
./build/main

Project layout

The minimum project shape is:

hello_kaede/
└── src/
└── main.kd

Kaede treats src/ as the project root when you use the project commands.

Rust interop scaffold

If you know you want Rust interop from the start, create the project with:

kaede new hello_kaede --rust

That gives you both Kaede sources and a rust/ crate that Kaede can import.

Next: read the language overview.