Quick Start Guide

Get Started with Clean Language

Install Clean Language and start building in minutes.

Step 1: Install Clean Language

Choose your preferred installation method below.

1

Using the Package Manager (Recommended)

macOS / Linux
curl -fsSL https://cleanlanguage.dev/install.sh | sh
Windows (PowerShell)
irm https://clean-lang.org/install.ps1 | iex

Using Cargo (Rust)

Terminal
cargo install clean-language-compiler

Verify Installation

Check version
cln --version

Step 2: Create Your First Program

Write a simple Clean Language program to verify your setup.

2

Create a New Project

Terminal
mkdir my-project
cd my-project
cln init

Write Your Code

Create a file named hello.cln with the following content:

hello.cln
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 and Run

Terminal
# Compile to WebAssembly
cln compile -o hello.wasm hello.cln

# Run with clean runtime
cln run hello.wasm

Step 3: Learn the Basics

Explore fundamental concepts and start building real applications.

3

Variables & Types

Learn about Clean's powerful type system, type inference, and how to declare variables safely.

View Syntax

Functions

Understand how to write functions, work with parameters, return values, and use arrow functions.

View Syntax

Classes & Objects

Master object-oriented programming with classes, inheritance, and interfaces in Clean Language.

View Syntax

Async Programming

Handle asynchronous operations with async/await syntax for cleaner, more readable code.

View Syntax

What's Next?

Continue your learning journey with these resources

Syntax Catalog

Browse the complete syntax reference with examples for every language feature.

Explore Syntax

Learning Modules

Follow structured tutorials from beginner to advanced topics.

Start Learning

Documentation

Read the comprehensive documentation and API reference on GitHub.

Read Docs