Installation

Supported platforms, requirements, and how to get Datakraften on your machine

Quick summary

Datakraften is designed for developer workstations. The primary target is WSL2 (Ubuntu or Fedora), but it also works on native Linux and macOS.

Common tasks

Quick install (recommended)

curl -fsSL https://datakraften.no/install | bash

Manual install

curl -fsSL -o dk https://github.com/sagathelab/datakraften/releases/latest/download/dk-linux-amd64

Manual install

curl -fsSL -o dk.sha256 https://github.com/sagathelab/datakraften/releases/latest/download/dk-linux-amd64.sha256

Manual install

sha256sum --check dk.sha256

Supported platforms

Datakraften is designed for developer workstations. The primary target is WSL2 (Ubuntu or Fedora), but it also works on native Linux and macOS.

  • **WSL2** (primary) — Ubuntu or Fedora distro on Windows. Full support for Windows-side editor detection (VS Code, Cursor) and Docker Desktop integration.
  • **Linux** (native) — works on any Debian/Ubuntu or Fedora-based distro. APT, DNF, YUM, and PACMAN package managers are supported.
  • **macOS** (experimental) — works with Homebrew as the native package manager. Some features (WSL-specific editor detection, Docker Desktop WSL integration) are skipped.
~ Datakraften does not support Windows itself (no native PowerShell or cmd support). Use WSL2 for the full experience.

System requirements

Before installing, make sure your system meets these requirements:

  • **OS** — Windows 10+ with WSL2 enabled (recommended), or any Linux distro with APT/DNF/YUM/PACMAN
  • **Architecture** — x86_64 or ARM64
  • **Internet** — the bootstrap script downloads tools from GitHub, npm, and Homebrew
  • **sudo access** — system packages are installed with sudo
  • **curl or wget** — needed for the one-liner install

Minimal disk usage: the dk CLI binary is ~15 MB. Total install (with all tools) can be 1-3 GB depending on the profile.

Quick install (recommended)

One command to download and run the bootstrap script:

$curl -fsSL https://datakraften.no/install | bash

What the script does:

  1. Detects your OS and architecture
  2. Downloads the latest dk binary from GitHub Releases
  3. Verifies the SHA256 checksum
  4. Installs to ~/.local/bin/dk
  5. Adds ~/.local/bin to PATH if not already present

After the script completes, close and reopen your terminal, or run source ~/.profile.

The script is intentionally minimal — it only installs the dk CLI. Run dk init and dk apply next to bootstrap your full environment.

Manual install

Download the latest release from GitHub, verify the checksum, and install manually:

$curl -fsSL -o dk https://github.com/sagathelab/datakraften/releases/latest/download/dk-linux-amd64
$curl -fsSL -o dk.sha256 https://github.com/sagathelab/datakraften/releases/latest/download/dk-linux-amd64.sha256
$sha256sum --check dk.sha256
$chmod +x dk
$mkdir -p ~/.local/bin
$mv dk ~/.local/bin/

Replace linux-amd64 with linux-arm64, darwin-amd64, or darwin-arm64 as needed.

Or use the package manager of your choice:

$brew install sagathelab/tap/datakraften
~ The Homebrew tap is community-maintained. For the latest version, use the direct download or the bootstrap script.