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 cleen
Download

Install in one line

macOS / Linux
curl -sSL https://github.com/Ivan-Pasco/clean-language-manager-old/releases/latest/download/install.sh | bash
Windows (PowerShell)
iwr https://github.com/Ivan-Pasco/clean-language-manager-old/releases/latest/download/install.ps1 | iex
Download the binarySet up from VS Code or CursormacOS 12+ · Linux x86_64 · Windows 10+
Tutorial · 2 minutes

Your first program

1

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.

Terminal
cleen init
cleen doctor
2

Install the latest compiler

Terminal
cleen install latest
cln --version
3

Write and run a program

Create hello.cln, then run it. Clean indents with tabs.

hello.cln
start:
	string name = "world"
	print("Hello, {name}!")
Terminal
$ cln run hello.cln
Hello, world!
Why cleen

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.

CommandWhat it does
cleen availableList 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 installInstall the server that runs Clean web apps
cleen frame install latestInstall the Frame framework
cleen cleanupRemove versions you no longer use
Questions

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.

Copied!