On this page
Installation
There are several ways to install Halyard on your system.
Pre-built Binaries
The easiest way to get started is to download a pre-built binary from the releases page.
| Platform | File |
|---|---|
| Linux x86_64 | halyard-vX.Y.Z-linux-x86_64.tar.gz |
| Windows x86_64 | halyard-vX.Y.Z-windows-x86_64.zip |
Linux:
curl -L https://codeberg.org/halyard/halyard-cli/releases/download/v0.0.21/halyard-v0.0.21-linux-x86_64.tar.gz | tar xz
sudo mv halyard /usr/local/bin/
Windows: Download halyard-vX.Y.Z-windows-x86_64.zip from the releases page, extract it, and add the directory to your PATH.
Using Nix Flakes
The easiest way to get started with Halyard is using Nix Flakes:
# Run directly without installing
nix run git+https://codeberg.org/halyard/halyard-cli
# Or build the package
nix build git+https://codeberg.org/halyard/halyard-cli
# Enter a development shell
nix develop git+https://codeberg.org/halyard/halyard-cli
Building from Source
If you prefer to build from source:
# Clone the repository
git clone https://codeberg.org/halyard/halyard-cli.git
cd halyard-cli
# Build and install
cargo install --path .
This provides a single halyard binary with all tools:
halyard run <file>— Execute a Halyard filehalyard check <file>— Type-check without executinghalyard repl— Start the interactive REPLhalyard tui— Open the terminal UI (REPL + environment inspector + DataFrame viewer)halyard fmt— Format source codehalyard lsp— Start the language serverhalyard init— Create a new project from a templatehalyard templates— List available project templateshalyard trace— Inspect compiler pipeline phases (AST, types, bytecode, execution)halyard info— Show project manifest and permissionshalyard flow— Show data flow graph between task fileshalyard graph— Show file dependency graphhalyard list— List.hlyfiles in the project
Individual Tools
If you prefer standalone binaries, each tool is also available as a separate package:
- halyard-repl — Interactive REPL
- halyard-lsp — Language server
- halyard-fmt — Code formatter
Jupyter Kernel (Optional)
For Jupyter notebook support, install the kernel separately:
cargo install --git https://codeberg.org/halyard/halyard-jupyter
install-halyard-kernel
See the Jupyter guide for details.
Prerequisites
- For Nix: Nix 2.4+ with flakes enabled
- For Source: Rust 1.85+ and Cargo (halyard-core uses edition 2024)
Verify Installation
After installation, verify Halyard is working:
halyard --version
Next Steps
Now that you have Halyard installed, proceed to Hello World to write your first program.