Skip to content

Installing Kova

Kova is one command, kova, that runs, builds, tests and formats programs. It comes ready-made for Linux, Windows and macOS: nothing else to install, no compiler, no linker, no Rust.

In a terminal:

Terminal window
curl -fsSL https://raw.githubusercontent.com/Thibault-Savenkoff/kova/main/install.sh | sh

It puts kova in ~/.local/bin (or the folder KOVA_INSTALL names).

In PowerShell:

Terminal window
irm https://raw.githubusercontent.com/Thibault-Savenkoff/kova/main/install.ps1 | iex

It puts kova.exe in %LOCALAPPDATA%\Programs\kova and adds it to your PATH.

In a new terminal:

Terminal window
kova --version

To update Kova, run the same command again: it always installs the latest version. To uninstall it, delete the kova file (the kova folder on Windows).

Each Kova version is published ready-made on the releases page. Take your system’s file:

Your systemThe file
Linux on a PC (Intel, AMD)kova-linux-x64.tar.gz
Linux on ARM (Raspberry Pi 4/5, ARM servers)kova-linux-arm64.tar.gz
Windows on a PC (Intel, AMD)kova-windows-x64.zip
Windows on ARM (Surface Pro X, Snapdragon)kova-windows-arm64.zip
macOS, every Mac (Apple Silicon and Intel)kova-mac.tar.gz

On Linux, uname -m tells you which one: x86_64 for x64, aarch64 for arm64.

Each file holds the kova command (kova.exe on Windows) and its two licenses, nothing else. Unpack it, then put kova in a folder of your PATH:

Terminal window
tar -xzf kova-linux-x64.tar.gz
mv kova ~/.local/bin/

On Windows, right-click the .zip, choose Extract All, then put kova.exe in a folder of your PATH.

Each kova builds for every system: kova build app.kova --target windows makes a Windows executable from Linux or a Mac, and so on (linux, linux-arm, windows, windows-arm, mac, mac-arm, mac-intel, web for a browser, and android for phones). On a Mac, kova build makes one executable for every Mac by default.

Kova is written in Rust. With Rust installed by rustup, from a clone of the repository:

Terminal window
rustup target add wasm32-unknown-unknown x86_64-unknown-linux-gnu x86_64-pc-windows-msvc aarch64-apple-darwin \
aarch64-unknown-linux-gnu x86_64-apple-darwin aarch64-pc-windows-msvc
cargo install --path . --locked

The rustup target add line gives Kova the pieces it needs for each system it builds for; without it, this kova builds for its own machine only, and kova build --target … says what is missing.

The extension for VSCode and VSCodium colors the code, shows errors while you type, completes names, formats on save, and adds the ▶ run, 🔨 build, 🧪 test and 🐞 debug buttons. From a clone of the repository:

Terminal window
cd editors/vscode
npm install
npm run package
code --install-extension kova-*.vsix

(codium instead of code for VSCodium.) The extension starts kova lsp, the language server inside the kova command: after installing a new Kova, run Developer: Reload Window so that the editor starts the new one.

Next: your first program.