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.
ironlark-cli mod create you:greeterironlark-cli mod buildironlark-cli self updateironlark-cli --help lists the commands, and every --help ends with a link
to that command in the ironlark-cli reference.
Install it
Section titled “Install it”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:
nix profile install github:ironlark-dev/ironlark-cliOn Windows, on macOS without Nix, and on any other system, install it by hand.
Install it by hand
Section titled “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.
-
Download the
.zipfor your machine from the latest release. -
Extract it, and move
ironlark-cli.exeinto%LOCALAPPDATA%\Programs\ironlark-cli, creating that folder. -
Add that folder to your
Path: open Edit environment variables for your account from the Start menu, selectPath, choose Edit, then New, and paste the folder. -
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.
-
Download the
.tar.gzfor your machine from the latest release. -
Unpack it and put the program in
~/.local/bin:Terminal window tar -xzf ironlark-cli-*-x86_64-unknown-linux-musl.tar.gzmkdir -p ~/.local/bininstall -m 0755 ironlark-cli-*-x86_64-unknown-linux-musl/ironlark-cli ~/.local/bin/On ARM, the same with
aarch64in place ofx86_64. -
Check it answers:
Terminal window ironlark-cli --version
The Linux build is fully static: it depends on no system library and runs on any distribution.
-
Download the
.tar.gzfor your Mac from the latest release. -
Unpack it and put the program in
~/.local/bin:Terminal window tar -xzf ironlark-cli-*-apple-darwin.tar.gzmkdir -p ~/.local/bininstall -m 0755 ironlark-cli-*-apple-darwin/ironlark-cli ~/.local/bin/ -
Clear the download mark, so macOS runs it:
Terminal window xattr -d com.apple.quarantine ~/.local/bin/ironlark-cli -
Check it answers:
Terminal window ironlark-cli --version
Check the download
Section titled “Check the download”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:
Get-FileHash ironlark-cli-*-windows-msvc.zipThe hash it prints must equal the line for the same file in SHA256SUMS.
grep x86_64-unknown-linux-musl.tar.gz SHA256SUMS | sha256sum --checkgrep apple-darwin.tar.gz SHA256SUMS | shasum -a 256 --checkWith b3sum installed, the same
check against B3SUMS is the same line with b3sum --check.
Complete commands in your shell
Section titled “Complete commands in your shell”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.
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:
Set-ExecutionPolicy -Scope CurrentUser RemoteSignedecho 'eval "$(ironlark-cli self completion bash)"' >> ~/.bashrcecho 'eval "$(ironlark-cli self completion zsh)"' >> ~/.zshrcmkdir -p ~/.config/fish/completions; echo 'ironlark-cli self completion fish | source' > ~/.config/fish/completions/ironlark-cli.fishmkdir -p ~/.config/elvish; echo 'eval (ironlark-cli self completion elvish | slurp)' >> ~/.config/elvish/rc.elvironlark-cli self completion --help prints the same lines.
Read the manual
Section titled “Read the manual”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:
ironlark-cli self manual ~/.local/share/man/man1man ironlark-climan ironlark-cli-mod-createBuilding mods needs Rust
Section titled “Building mods needs Rust”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:
rustup target add wasm32-wasip2rustup component add rustfmt clippyWhen something is missing, the tool says which of these lines to run.
Keep it current
Section titled “Keep it current”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:
ironlark-cli self updateThis 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 releaseIt 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.