Install Clean Language
One command installs the compiler, the server and the framework. Keep every version you need side by side, like rustup or nvm.
command cleenInstall in one line
curl -sSL https://github.com/Ivan-Pasco/clean-language-manager-old/releases/latest/download/install.sh | bashiwr https://github.com/Ivan-Pasco/clean-language-manager-old/releases/latest/download/install.ps1 | iexYour first program
Set up your shell
cleen init adds Clean to your PATH. cleen doctor checks the setup and tells you how to fix anything that's off.
cleen init
cleen doctorInstall the latest compiler
cleen install latest
cln --versionWrite and run a program
Create hello.cln, then run it. Clean indents with tabs.
start:
string name = "world"
print("Hello, {name}!")$ cln run hello.cln
Hello, world!Set up once, stay in sync
One installer for everything
Compiler, server and framework come from the same tool.
Many versions, no conflicts
Each version lives in its own folder. cleen use switches instantly.
Same version for the whole team
cleen local pins a version to the project. Teammates run cleen sync.
Fixes its own setup
cleen doctor finds PATH and install problems and repairs the common ones.
| Command | What it does |
|---|---|
cleen available | List versions you can install |
cleen install <version> | Install a version (latest works too) |
cleen use <version> | Make a version the default |
cleen local <version> | Pin a version for the current project |
cleen server install | Install the server that runs Clean web apps |
cleen frame install latest | Install the Frame framework |
cleen cleanup | Remove versions you no longer use |
Learn it step by step
Short lessons that build on each other. Each one ends with code you can run.
Your First Program
Write and run your very first Clean Language program in just three lines.
Start →Variables and Types
Store values in variables and discover Clean's four basic types.
Start →Working with Text
Use string interpolation and the most common string operations.
Start →Making Decisions
Use if, else if, and else to run different code based on conditions.
Start →Loops: Doing Things More Than Once
Use iterate and while loops to repeat code, and break or continue to control the flow.
Start →Lists: Keeping Groups of Things
Create and work with lists of values — add, access, iterate, and check.
Start →Writing Your Own Functions
Write reusable functions with parameters and return values.
Start →Classes: Grouping Data and Behavior
Define classes with fields, constructors, and methods — then build on them with inheritance.
Start →Handling Errors
Raise errors with error() and catch them gracefully with onError.
Start →Common questions
Do I need Rust, Node or anything else?
No. cleen and the compiler are single programs. Nothing else is needed.
I get "cln: command not found"
Your shell hasn't picked up the new PATH yet. Open a new terminal, or run cleen init again. cleen doctor confirms when it's fixed.
Can different projects use different versions?
Yes. Run cleen local <version> inside a project. Anyone who clones it runs cleen sync.
How do I remove a version?
cleen uninstall <version>, or cleen cleanup to remove every version you don't use.
Installed. What next?
Learn the language in ten short lessons, or build a web app with a database.