Skip to main content

Prerequisites

  • A Linux host (x86_64 or aarch64)
  • curl installed
  • PostgreSQL 16+ installed and running (or let the installer manage one for you)
Malbox does not support macOS or Windows hosts directly. Use WSL2 on Windows.

Bootstrap the CLI

The bootstrap script downloads the malbox binary to ~/.local/bin and verifies its checksum. Use process substitution so stdin stays connected to your terminal and the interactive prompts work:
Make sure ~/.local/bin is in your PATH. If it is not, add it to your shell profile:

Run the installer

Once the CLI is on your system, run the interactive installer:
The installer walks you through each step:
1

Release channel

Choose between stable (recommended) and nightly builds.
2

Daemon source

Download a prebuilt binary or compile from source. Compiling from source lets you choose exactly which virtualization providers and machine provisioners to include.
3

PostgreSQL setup

Connect to an existing PostgreSQL server or let Malbox set up a managed instance. The installer validates the connection before continuing.
4

Systemd service

Optionally install a systemd user service so the daemon starts automatically.
The installer shows a live progress display as it downloads binaries, sets up the database, writes configuration, and configures services. If the install is interrupted, re-running malbox daemon install detects the incomplete state and offers to resume from where it stopped.

Non-interactive install

Skip all prompts with --yes. This selects nightly channel, prebuilt binaries, a managed PostgreSQL instance, and systemd:
--yes requires PostgreSQL tools (initdb, psql) to be installed on the system. If they are missing, the command fails immediately with an error.

Start the daemon

If you enabled the systemd service:
Otherwise, start it manually:
The daemon serves the HTTP API on http://127.0.0.1:8080 by default.

What gets installed

Upgrading

Upgrade to the latest version on your current release channel:
To change providers or switch channels during an upgrade:
To roll back to the previous version:
See the malbox daemon upgrade reference for all flags.

Uninstalling

There is no dedicated uninstall command yet. Remove the installed files manually:
If the installer set up a managed PostgreSQL instance, stop it first: