Install Clean Language and start building in minutes.
Choose your preferred installation method below.
curl -fsSL https://cleanlanguage.dev/install.sh | sh
irm https://clean-lang.org/install.ps1 | iex
cargo install clean-language-compiler
cln --version
Write a simple Clean Language program to verify your setup.
mkdir my-project
cd my-project
cln init
Create a file named hello.cln with the following content:
functions:
string greet(string name)
return "Hello, " + name + "!"
integer add(integer a, integer b)
return a + b
start:
string message = greet("Clean Language")
_print(message)
integer result = add(5, 3)
_print("5 + 3 = " + _itos(result))
# Compile to WebAssembly
cln compile -o hello.wasm hello.cln
# Run with clean runtime
cln run hello.wasm
Explore fundamental concepts and start building real applications.
Learn about Clean's powerful type system, type inference, and how to declare variables safely.
View SyntaxUnderstand how to write functions, work with parameters, return values, and use arrow functions.
View SyntaxMaster object-oriented programming with classes, inheritance, and interfaces in Clean Language.
View SyntaxHandle asynchronous operations with async/await syntax for cleaner, more readable code.
View SyntaxContinue your learning journey with these resources
Browse the complete syntax reference with examples for every language feature.
Explore Syntax