Skip to content

Documentation

Installation

The official installer is the easiest way to install Iris on macOS, Linux, and Windows. This page covers how to choose a version or installation directory, verify releases, and keep Iris up to date.

Install the latest release#

Iris is available for Linux on x86-64 and ARM64, macOS on Intel and Apple silicon, and 64-bit Windows. To install the latest stable release, run the command for your platform:

Show source
curl -fsSL https://iris-lang.com/install.sh | sh

The installer downloads Iris from GitHub and places the iris executable in ~/.local/bin on macOS and Linux, or in %LOCALAPPDATA%\Iris\bin on Windows. The installer does not modify your PATH.

Choose a release or directory#

You can configure the installer with the following environment variables:

  • IRIS_VERSION selects a release by its tag. The installer selects the latest stable release otherwise.
  • IRIS_INSTALL_DIR sets the installation directory.
  • IRIS_SKIP_ATTESTATION disables release verification when set to 1. See Verify releases.

On macOS and Linux:

Shell
export IRIS_VERSION=v0.1.5curl -fsSL https://iris-lang.com/install.sh | sh# optional: unset IRIS_VERSION

On Windows PowerShell:

PowerShell
$env:IRIS_VERSION = "v0.1.5"irm https://iris-lang.com/install.ps1 | iex

Verify releases#

Iris releases are built with GitHub Actions. GitHub signs a record of the repository and workflow that built each release archive; this is called a build provenance attestation. The installer verifies this record before installation to confirm that the download came from the Iris repository and was not modified.

Verification requires the GitHub CLI (gh) with the gh attestation. Without gh, the installer warns you and continues without verification. If verification fails, the installer stops. If gh cannot access the attestations, use IRIS_SKIP_ATTESTATION=1 or $env:IRIS_SKIP_ATTESTATION = "1" in PowerShell to skip verification.

Install with Nix#

Nix users can use the community-maintained purescript-iris-nix flake instead of the install scripts. It builds Iris from source and provides the iris command. Its README describes how to use it. Update Iris through the flake rather than with iris self update.

Update Iris#

If you installed Iris with a tool such as Cargo, mise, or Nix, use that tool to update it. Otherwise, run:

Terminal
iris self update

The command replaces the running iris executable with the latest release on its channel. If you have a stable release, this gives you the latest stable release. A canary build, whose version ends in -dev.<revision>, updates to the latest canary build.

To see the available options, including how to choose a release, run:

Terminal
iris self update --help

Canary builds#

You can use canary builds to try changes before they are released. Every successful build of the main branch is published on GitHub as a prerelease, tagged v<version>-dev.<revision>.

To install a canary build, find the newest prerelease on the releases page and pass its tag in IRIS_VERSION. The install scripts do not select canary builds automatically. Without IRIS_VERSION, they install the latest stable release.

iris self update --canary switches to the latest canary build, and iris self update --stable switches back to stable releases. See Update Iris.

Packaging Iris#

When building Iris with Cargo, set IRIS_BUILD_REVISION to include a Git revision in the version reported by the CLI and language server. The revision must be 7 to 64 hexadecimal characters.

For example, a 0.1.13 build with the revision 7ddab4481c3b reports:

Terminal
iris --versioniris 0.1.13-dev.7ddab4481c3b

Builds without the variable report only the package version, such as iris 0.1.13.