Skip to content

Update or uninstall Lema

Change the installed CLI and VM while preserving projects and controlling when running apps restart.

Update the installed pair

For a direct installation, download and run the installer again:

Shell
curl --proto '=https' --tlsv1.2 -fsSLo install-lema.sh https://www.lema-lang.org/install.sh
sh install-lema.sh

If you chose a custom location, pass the same --dir. You can choose an available release with --version X.Y.Z; replace X.Y.Z with the version in its download metadata. Installation activates the complete CLI/VM pair together. A failed download or copy leaves the previous selection usable.

For Homebrew:

Shell
brew update
brew upgrade lorenalabs/lema/lema

Check the selected installation with type -a lema, lema --version, and lema build-info --check-worker, then run lema setup to check its runtime and install the matching library pack. Homebrew and direct installs remain separate; changing one does not replace the other’s files.

Restart active work explicitly

An upgrade does not kill running apps or codebase servers. They retain the executable files they need, including through Homebrew’s old-keg cleanup. A new client refuses operations on a server from another build instead of silently attaching to it.

Finish or cancel work with the matching old CLI, stop each app (Ctrl-C for the echo starter), then run these commands in its project with the new CLI:

Shell
lema stop
lema start
lema status

lema info remains available across build versions for inspection. lema self versions lists retained direct-install versions with their CLI paths. Do not remove old version directories while their processes are still running. This lifecycle keeps executable files available; it does not promise that older store formats can be opened by every later release. Read release-specific instructions before moving important projects between versions.

Uninstall

Stop apps and codebase servers you no longer want running. For a direct installation:

Shell
lema self uninstall

Use the same --dir for a custom location. Uninstall removes managed command links and prints what remains. It preserves installed version directories, project stores, configuration, runtime downloads and caches. Remove your PATH entry if you added one. Once every process using a retained installation has stopped, you can remove that installation directory yourself.

For Homebrew:

Shell
brew uninstall lorenalabs/lema/lema
brew untap lorenalabs/lema

When reinstalling after removal, repeat the formula trust step in the setup guide.

Homebrew removes its package. Lema’s protected retained executables and your project/runtime data remain. Keep those retained files until their processes have stopped. Reinstalling either package does not require deleting a project or LEMA_HOME.

Lema v0.3.2 · Updated 29 October 2026 · Version and compatibility