Installation
This page shows how to install Vix.cpp and verify that it works on your machine.
For Getting Started, install the full SDK.
The full SDK includes the vix CLI, headers, and libraries needed to build Vix applications.
Install on Linux or macOS
Run:
curl -fsSL https://vixcpp.com/install.sh | bashAfter installation, restart your terminal or reload your shell configuration.
Install on Windows
Open PowerShell and run:
irm https://vixcpp.com/install.ps1 | iexVerify the installation
Check that the vix command is available:
vix --versionExpected output shape:
Vix.cpp CLI
version : 2.5.3
author : Gaspard Kirira
source : https://github.com/vixcpp/vixThe exact version may be different depending on the latest release.
Verify the SDK headers
For C++ applications using Vix, the SDK headers must be installed.
Check that vix.hpp exists:
find ~/.local/include -name vix.hpp 2>/dev/nullExpected output:
/home/your-user/.local/include/vix.hppIf nothing appears, reinstall the full SDK.
SDK mode vs CLI-only mode
Vix has two installation modes.
| Mode | What it installs | Use when |
|---|---|---|
| SDK mode | CLI, headers, and libraries | You want to build Vix applications |
| CLI-only mode | Only the vix binary | You only need the CLI |
For this Getting Started guide, use the default SDK mode.
Do not use CLI-only mode if you want to compile code that includes:
#include <vix.hpp>CLI-only mode
CLI-only mode installs only the command-line tool.
VIX_INSTALL_KIND=cli curl -fsSL https://vixcpp.com/install.sh | bashThis is not recommended for this guide because the next pages build real Vix applications.
Fix PATH issues
If your terminal says:
vix: command not foundAdd ~/.local/bin to your PATH.
Bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcZsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcThen check again:
vix --versionInstall build prerequisites
Vix uses the normal C++ toolchain underneath.
Make sure your system has a compiler, CMake, Ninja, and common development libraries.
Ubuntu or Debian
sudo apt update
sudo apt install -y \
build-essential cmake ninja-build pkg-config \
libssl-dev libsqlite3-dev zlib1g-dev libbrotli-dev \
nlohmann-json3-dev libspdlog-dev libfmt-devmacOS
With Homebrew:
brew install cmake ninja pkg-config openssl@3 spdlog fmt nlohmann-json brotliWindows
Install Visual Studio Build Tools with MSVC or clang-cl.
For extra dependencies, use vcpkg.
Check your toolchain
Run:
c++ --version
cmake --version
ninja --versionIf one of these commands is missing, install the missing tool before continuing.
Quick test
Create a temporary folder:
mkdir -p ~/tmp/vix-install-test
cd ~/tmp/vix-install-testCreate main.cpp:
cat > main.cpp <<'CPP'
#include <iostream>
int main()
{
std::cout << "Hello from Vix\n";
return 0;
}
CPPRun it:
vix run main.cppExpected output:
Hello from VixCommon installation problems
vix: command not found
Your shell cannot find the Vix binary.
Fix:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcThen run:
vix --version#include <vix.hpp> not found
The full SDK is not installed, or the headers are not visible.
Check:
find ~/.local/include -name vix.hpp 2>/dev/nullIf nothing appears, reinstall Vix without CLI-only mode:
curl -fsSL https://vixcpp.com/install.sh | bashCMake or Ninja is missing
Check:
cmake --version
ninja --versionOn Ubuntu or Debian:
sudo apt install -y cmake ninja-buildUpgrade Vix later
To upgrade the CLI:
vix upgradeTo inspect your environment:
vix doctorTo inspect Vix paths and cache information:
vix infoWhat you should remember
Install the full SDK:
curl -fsSL https://vixcpp.com/install.sh | bashVerify the CLI:
vix --versionVerify the SDK headers:
find ~/.local/include -name vix.hpp 2>/dev/nullFor this guide, SDK mode is the correct installation mode.
Next step
Now set up your development environment.
Next: Set Up Your Environment