Skip to content
Documentation

Install

This installs the luca command, which runs Luca programs: luca hello.lucc. Installing builds Luca Code from source, which takes a few minutes but needs no account and costs nothing.

1. macOS or Linux

You need git and Rust (cargo). The installer fetches Rust for you if it is missing, then builds and installs luca from source.

Fastest — one line (bash or zsh):

bash <(curl -fsSL https://raw.githubusercontent.com/LucaEcosystem/luca-code/main/scripts/install.sh)

Or clone and install:

git clone --depth 1 https://github.com/LucaEcosystem/luca-code.git
cd luca-code
bash scripts/install.sh

To install from a fork, set LUCA_REPO_URL before the one-liner.

Then verify:

luca --version   # prints: luca 1.0.4 Beta

If the installer says luca is not on your PATH, add the line it prints (usually export PATH="$HOME/.cargo/bin:$PATH") to ~/.zshrc (macOS default) or ~/.bashrc (most Linux), restart the terminal, and verify again.

2. Windows

You need git and Rust. The installer fetches Rust for you if it is missing. Open PowerShell (not CMD):

git clone --depth 1 https://github.com/LucaEcosystem/luca-code.git
cd luca-code
.\scripts\install.ps1

If Windows blocks the script, run this once, then re-run the installer:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Then verify:

luca --version   # prints: luca 1.0.4 Beta

If luca is not recognized, add %USERPROFILE%\.cargo\bin to your user PATH (search "environment variables" in Settings), restart the terminal, and verify again.

3. Upgrade

Re-run the same installer. It always rebuilds and replaces the old binary:

bash scripts/install.sh          # macOS / Linux
.\scripts\install.ps1            # Windows

Then luca --version to confirm the new version.

4. Uninstall

cargo uninstall luca-code        # removes the luca binary

That leaves Rust and your .lucc files untouched. To also remove a manually added PATH line, delete it from ~/.zshrc / ~/.bashrc (macOS/Linux) or from the user PATH (Windows).

Next step

Write your first program: first program. Stuck? See troubleshooting.