Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

airsl ships as a single prebuilt binary for macOS, Linux and Windows. You do not need Rust, Lua or a C compiler to run it.

macOS and Linux

$ curl -LsSf https://airsstack.github.io/airsl/install.sh | sh

Windows

powershell -ExecutionPolicy Bypass -c "irm https://airsstack.github.io/airsl/install.ps1 | iex"

The installer puts airsl in ~/.local/bin (%USERPROFILE%\.local\bin on Windows) and adds that folder to your PATH. Open a new terminal so the change takes effect, then check it worked:

$ airsl --version
airsl <version>

If you would rather the installer left your PATH alone, set AIRSL_CLI_NO_MODIFY_PATH=1 before running it.

These commands always install the newest release. To install a particular one instead, name it in AIRSL_VERSION:

$ curl -LsSf https://airsstack.github.io/airsl/install.sh | AIRSL_VERSION=<version> sh

Building from source

If you already have a Rust toolchain, you can build airsl yourself:

$ cargo install --locked airsl-cli

This needs a C compiler, because airsl compiles Lua itself from its C source and links it into the binary. That is also why the prebuilt binary needs nothing else installed: Lua is already inside it.

Running scripts outside airsl

To use require("airsstack") in stock Lua 5.4, LuaJIT or Neovim, install the native module with LuaRocks. Running Scripts in Stock Lua shows how.

Other ways to install

Each release also carries a plain archive for every platform, a checksum for each archive, and a signed record of which build produced it. The installation appendix covers downloading by hand, choosing between the Linux builds, and verifying what you downloaded.