Installing Devbox
Install Devbox
Select your OS below for the steps to install Devbox.
- Linux
- MacOS
- Windows/WSL2
- NixOS/Nixpkg
Run the following install script as a non-root user to install the latest version of Devbox:
curl -fsSL https://get.jetpack.io/devbox | bash
Devbox requires the Nix Package Manager. If Nix is not detected when running a command, Devbox will install it for you in single-user mode for Linux. Don't worry: You can use Devbox without needing to learn the Nix Language.
If you would like to install Nix yourself, we recommend the Determinate Nix Installer.
Run the following install script to install the latest version of Devbox:
curl -fsSL https://get.jetpack.io/devbox | bash
Devbox requires the Nix Package Manager. If Nix is not detected when running a command, Devbox will install it in multi-user mode for macOS. Don't worry: You can use Devbox without needing to learn the Nix Language.
If you would like to install Nix yourself, we recommend the Determinate Nix Installer.
You can use Devbox on a Windows machine using Windows Subsystem for Linux 2.
Installing WSL2
To install WSL2 with the default Ubuntu distribution, open Powershell or Windows Command Prompt as an administrator, and run:
wsl --install
If WSL2 is already installed, you can install Ubuntu by running
wsl --install -d Ubuntu
If you are running an older version of Windows, you may need to follow the manual installation steps to enable virtualization and WSL2 on your system. See the official docs for more details
Run the following script in your WSL2 terminal as a non-root user to install Devbox.
curl -fsSL https://get.jetpack.io/devbox | bash
Devbox requires the Nix Package Manager. If Nix is not detected on your machine when running a command, Devbox will automatically install it in single user mode for WSL2. Don't worry: You can use Devbox without needing to learn the Nix Language.
Devbox is available through the Nix Package Manager.
To install on NixOS:
nix-env -iA nixos.devbox
To install on a non NixOS:
nix-env -iA nixpkgs.devbox
Next Steps
- Getting Started: Learn how to create a dev environment with Devbox
- Devbox Global: Learn how to use the devbox as a global package manager