Getting started
Install BxRig, run the wizard, and find your way around.
On this page
Getting started
What you need
Supported: CachyOS, Arch Linux, openSUSE Tumbleweed and Slowroll, Ubuntu 26.04 LTS and Debian 13. See Distributions for what each one offers.
- CachyOS or Arch Linux (
pacman), openSUSE Tumbleweed or Slowroll (zypper), Ubuntu 26.04 LTS or Debian 13 (apt), x86_64. - A normal user with
sudo. The installer refuses to run as root. - A network connection.
Install
curl -fsSL {{ installUrl }} | bash
The installer:
- checks the machine;
- downloads the program and the install bundle for your channel and verifies their signature and SHA-256;
- installs packages, toolchains (Java 21,
bvm,mvm, BoxLang, MatchBox, Rust) and the core apps; - starts the setup wizard.
Its log is ~/.cache/bxrig/install.log.
Without anyone at the keyboard
curl -fsSL {{ installUrl }} | bash -s -- --yes --answers answers.json
--yes never asks (it needs passwordless sudo). Without --answers, the wizard's default answers are applied. More options: --channel stable|beta, --no-wizard, --dry-run, --source, --snapshot and --matchbox-branch (below).
Which MatchBox
The installer installs MatchBox with mvm, which it installs first. You choose which one:
| You pass | MatchBox | How |
|---|---|---|
| nothing | the stable release | mvm install latest, mvm use latest |
--snapshot (or BXRIG_MATCHBOX_CHANNEL=snapshot) | the snapshot build | mvm install snapshot, mvm use snapshot (mvm skips a build that has not changed) |
--matchbox-branch REF [--matchbox-repo OWNER/NAME] (or BXRIG_MATCHBOX_BRANCH, BXRIG_MATCHBOX_REPO) | a branch of a MatchBox repository, default ortus-boxlang/matchbox | shallow clone, cargo build --release --features bif-tui, installed under ~/.local/share/bxrig/matchbox/bin |
curl -fsSL {{ installUrl }} | bash -s -- --snapshot
curl -fsSL {{ installUrl }} | bash -s -- --matchbox-branch bxrig
curl -fsSL {{ installUrl }} | bash -s -- --matchbox-branch feature/x --matchbox-repo someone/matchbox
- The normal install needs no particular MatchBox. It installs the prebuilt
bxrigof your channel, so MatchBox is only part of the toolchain and any version is fine. - Compiling BxRig needs a MatchBox with the terminal UI. The stable and snapshot builds do not have it yet (the
bxrigbranch is ahead ofdevelop), so a stage that compiles BxRig (install.shfrom a checkout,--source github:...) first runs a small probe, and stops withThis MatchBox (0.13.2) cannot compile BxRig ... Use the branch build: install.sh toolchains --yes --matchbox-branch bxrigif the MatchBox lacks it. It never switches MatchBox on its own.--source github:...therefore builds thebxrigbranch by default; give--matchbox-branchto use another one, and--snapshotmakes it stop at the probe.bxrig doctorreports such a MatchBox asmiss matchbox ... (cannot compile BxRig; install: install.sh toolchains --yes --matchbox-branch bxrig)and exits 4. - A branch build comes first. It is installed under
~/.local/share/bxrig/matchbox/binand the installer calls it by that path, so thematchboxthatmvmmanages is not replaced. Add that directory to yourPATHif you wantmatchboxto be the branch build. Running the installer again with--snapshotremoves the branch build so that mvm's MatchBox is the one in use; running it with no option leaves what is installed alone, and rebuilds a branch only when its head moved. REFandOWNER/NAMEmay contain only letters, digits and. _ / @ + -(. _ -for the owner and repository), may not start with a dash and are passed to git as arguments, never through a shell.--matchbox-from-sourceis the older spelling of--matchbox-branch bxrig.install.sh toolchains --yes [--snapshot | --matchbox-branch REF [--matchbox-repo OWNER/NAME]]re-runs just this stage.BXRIG_MATCHBOX_FILE=PATHinstalls a MatchBox you built yourself instead.
Testing a branch
curl -fsSL https://downloads.ortussolutions.com/ortussolutions/bxrig/install.sh | bash -s -- --source github:ortus-boxlang/BxRig@development --yes
--source SPEC (or BXRIG_SOURCE) says where BxRig comes from:
| SPEC | Meaning |
|---|---|
stable | The default: the signed release |
beta | The same as --channel beta |
github:OWNER/REPO@REF | A branch, tag or commit of a GitHub repository. github:@REF and github:REF mean ortus-boxlang/BxRig |
A GitHub source is unsigned: no release signature and no checksum from the BxRig downloads. The installer prints a warning, and continues only with --yes or after you type the word unsigned (without either it stops with exit 2 and changes nothing). It downloads https://codeload.github.com/OWNER/REPO/tar.gz/REF (public repositories; for a private one set GITHUB_TOKEN or GH_TOKEN, which is sent to GitHub only as a request header and never printed or logged), unpacks it, and runs that tree's own bootstrap/install.sh stages: packages, toolchains, the program built from the tree's src/Main.bx with a MatchBox that has the terminal UI (the bxrig branch unless you chose another, see above), the core apps, then the wizard from the freshly built program. --dry-run downloads and unpacks the tree, prints the commit and the tree's plan (including the MatchBox build), and installs nothing.
The source (github:OWNER/REPO@REF) and the resolved commit are written to ~/.cache/bxrig/install.log and to ~/.local/share/bxrig/install-source. bxrig update does not read them: it compares the program with the channel's release, so after a GitHub install bxrig update check reports an update, and bxrig update apply --yes replaces your build with the stable (or beta) one. Skip update apply while you test the branch.
After the install
| Do this | With |
|---|---|
| See what is set up | bxrig status |
| Change your choices | bxrig init |
| Open the control center | Super+Space or bxrig menu |
| See every shortcut | Super+K or bxrig keys sheet |
| Check for updates | bxrig update check |
New to BoxLang? Run bxrig boxlang welcome for a getting-started page, or open Try BoxLang.