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.
1. Install Kova
Section titled “1. Install Kova”Linux and macOS
Section titled “Linux and macOS”In a terminal:
curl -fsSL https://raw.githubusercontent.com/Thibault-Savenkoff/kova/main/install.sh | shIt puts kova in ~/.local/bin (or the folder KOVA_INSTALL names).
Windows
Section titled “Windows”In PowerShell:
irm https://raw.githubusercontent.com/Thibault-Savenkoff/kova/main/install.ps1 | iexIt puts kova.exe in %LOCALAPPDATA%\Programs\kova and adds it to your PATH.
In a new terminal:
kova --versionUpdate, uninstall
Section titled “Update, uninstall”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).
Or download it by hand
Section titled “Or download it by hand”Each Kova version is published ready-made on the releases page. Take your system’s file:
| Your system | The 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:
tar -xzf kova-linux-x64.tar.gzmv kova ~/.local/bin/On Windows, right-click the .zip, choose Extract All, then put kova.exe in a folder of
your PATH.
2. Build for every system
Section titled “2. Build for every system”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.
3. Building Kova itself (to change it)
Section titled “3. Building Kova itself (to change it)”Kova is written in Rust. With Rust installed by rustup, from a clone of the repository:
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-msvccargo install --path . --lockedThe 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.
4. The editor
Section titled “4. The editor”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:
cd editors/vscodenpm installnpm run packagecode --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.