This guide covers the installation and setup process for the Vega Development Kit (VDK) CLI and its dependencies.
These are required to run Vega and the KinD clusters it creates:
- Docker: Vega uses KinD (Kubernetes in Docker), so a working Docker installation (Docker Desktop or Docker Engine) is essential.
- kubectl: The Kubernetes command-line tool, used to interact with your clusters.
- KinD: Kubernetes in Docker, used to create local clusters.
The easiest way to get started is using Devbox:
-
Install Devbox:
curl -fsSL https://get.jetify.com/devbox | bash -
Clone the repository:
git clone https://github.com/ArchetypicalSoftware/VDK.git cd VDK -
Start a Devbox shell:
devbox shell
-
Initialize Vega:
vega init
This sets up the complete development environment including the registry, reverse proxy, and a default cluster.
If not using Devbox, ensure you have:
- .NET 10 SDK
- Docker
- KinD
- kubectl
- Flux CLI
Then build from source:
cd cli/src/Vdk
dotnet build
dotnet run -- --helpFor Flux GitOps integration, you may need a GitHub Personal Access Token:
export GITHUB_VDK_TOKEN="<YOUR_GHPAT>"Add this to your shell profile (.bashrc, .zshrc, etc.) for persistence.
If port 443 is already in use on your system:
export REVERSE_PROXY_HOST_PORT=8443If you encounter SSL errors behind a corporate proxy (like Netskope), add your corporate certificates to Nix's trust store:
-
Generate a combined certificate bundle:
security export -t certs -f pemseq -k /Library/Keychains/System.keychain -o /tmp/certs-system.pem security export -t certs -f pemseq -k /System/Library/Keychains/SystemRootCertificates.keychain -o /tmp/certs-root.pem cat /tmp/certs-root.pem /tmp/certs-system.pem > /tmp/ca_cert.pem sudo mv /tmp/ca_cert.pem /etc/nix/
-
Update
/etc/nix/nix.conf:ssl-cert-file = /etc/nix/ca_cert.pem -
Restart the Nix daemon:
sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Once Vega is installed, verify it:
vega --versionList available commands:
vega --helpNow that Vega is set up, learn how to Create Clusters.