Skip to content
Ironlark is in closed pre-alpha. Join the Discord for access.

The command-line tool

ironlark-cli is the Ironlark command-line tool. It creates a mod with every file in the right place, builds it into the components the game loads, and checks it before you ship it. It is one file with nothing else to install.

Every command is written the same way: what you act on, then what to do with it.

Terminal window
ironlark-cli mod create you:greeter
ironlark-cli mod build
ironlark-cli self update

ironlark-cli --help lists the commands, and every --help ends with a link to that command in the ironlark-cli reference.

On Linux, a package also sets up completion in your shell and the manual pages. Download the one for your system from the latest release (on ARM, the arm64 or aarch64 one) and install it:

System Command
Debian, Ubuntu sudo apt install ./ironlark-cli_<version>_amd64.deb
Fedora, openSUSE sudo dnf install ./ironlark-cli-<version>-1.x86_64.rpm
Alpine sudo apk add --allow-untrusted ./ironlark-cli_<version>_x86_64.apk
Arch Linux sudo pacman -U ./ironlark-cli-<version>-1-x86_64.pkg.tar.zst

These packages come from the release page, not a repository, so a newer version is installed the same way.

With Nix (flakes enabled), on Linux or macOS, the flake in the tool’s repository builds it, with completion and manual pages:

Terminal window
nix profile install github:ironlark-dev/ironlark-cli

On Windows, on macOS without Nix, and on any other system, install it by hand.

Download the archive for your machine from the latest release. Each archive holds the program, its licence and its readme.

Your machine The archive to download
Windows ironlark-cli-<version>-x86_64-pc-windows-msvc.zip
Windows on ARM ironlark-cli-<version>-aarch64-pc-windows-msvc.zip
Linux ironlark-cli-<version>-x86_64-unknown-linux-musl.tar.gz
Linux on ARM ironlark-cli-<version>-aarch64-unknown-linux-musl.tar.gz
macOS, Apple silicon ironlark-cli-<version>-aarch64-apple-darwin.tar.gz
macOS, Intel ironlark-cli-<version>-x86_64-apple-darwin.tar.gz

Put it exactly where the steps below say: a copy there updates itself with ironlark-cli self update, and a copy anywhere else does not.

  1. Download the .zip for your machine from the latest release.

  2. Extract it, and move ironlark-cli.exe into %LOCALAPPDATA%\Programs\ironlark-cli, creating that folder.

  3. Add that folder to your Path: open Edit environment variables for your account from the Start menu, select Path, choose Edit, then New, and paste the folder.

  4. Open a new terminal and check it answers:

    Terminal window
    ironlark-cli --version

The Windows build needs nothing else installed, not even the Visual C++ runtime.

Every release also carries SHA256SUMS and B3SUMS: the checksum of every file in it. Download SHA256SUMS next to your archive and check the line for your archive, in that folder:

Terminal window
Get-FileHash ironlark-cli-*-windows-msvc.zip

The hash it prints must equal the line for the same file in SHA256SUMS.

With b3sum installed, the same check against B3SUMS is the same line with b3sum --check.

With completion on, Tab completes commands, options and their values: ironlark-cli mod cr becomes ironlark-cli mod create, and --realms offers server, client and server,client.

The Linux packages and Nix turn it on for bash, zsh and fish when they install. Otherwise, and for PowerShell, run the line for your shell once; every shell you start after it completes.

Terminal window
if (!(Test-Path $PROFILE)) { New-Item -Force $PROFILE | Out-Null }; Add-Content $PROFILE 'ironlark-cli self completion powershell | Out-String | Invoke-Expression'

Windows PowerShell 5.1 runs no profile until you allow it, once:

Terminal window
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

ironlark-cli self completion --help prints the same lines.

Every command has a manual page. The Linux packages and Nix install them. For a copy you put in place by hand, on Linux or macOS, write them where man looks:

Terminal window
ironlark-cli self manual ~/.local/share/man/man1
man ironlark-cli
man ironlark-cli-mod-create

Creating a mod needs nothing else. Building and checking one compiles Rust, so those two commands need a Rust toolchain from rustup, with the WebAssembly target mods compile to and the formatter and linter mod check runs:

Terminal window
rustup target add wasm32-wasip2
rustup component add rustfmt clippy

When something is missing, the tool says which of these lines to run.

A copy from a Linux package updates with the newer package from the release page; a copy from Nix, the way you installed it.

A copy you put in place by hand updates itself:

Terminal window
ironlark-cli self update

This downloads the newest release for your platform and replaces the copy you ran. The new file is used only when its checksum matches the release and it starts; otherwise your current copy stays. When you already have the newest release, it says so:

ironlark-cli <version> is the newest release

It replaces only the copy at ~/.local/bin/ironlark-cli, or on Windows at %LOCALAPPDATA%\Programs\ironlark-cli\ironlark-cli.exe. Any other copy is left alone, and the message says how to update it, so nothing another tool installed is ever overwritten.

Once a day, a command run in a terminal from that copy also mentions a newer release when there is one. To turn that off, set check = false under [update] in the configuration.