---
title: Get started
summary: Install BoxLang, then add CommandBox with one command.
icon: phosphor-duotone:rocket-launch
tags: [install]
---

Install BoxLang, then add CommandBox with one command. The latest CommandBox release is **v{{ latestVersion }}**.

## 1. Install BoxLang

BoxLang needs Java 21 or newer. Both installers can fetch Java for you. Pick the **quick installer** for one BoxLang version, or the **BoxLang Version Manager (BVM)** to run several versions side by side. The two are compared at the [bottom of this page](#which-installer).

### Quick installer

=== "macOS / Linux"
    ```bash
    /bin/bash -c "$(curl -fsSL https://install.boxlang.io)"

    # add Java 21 automatically
    curl -fsSL https://install.boxlang.io | bash -s -- --with-jre

    boxlang --version
    ```

=== "Homebrew"
    ```bash
    brew tap ortus-boxlang/boxlang
    brew install ortus-boxlang/boxlang/boxlang
    install-boxlang
    boxlang --version
    ```

=== "Windows"
    ```powershell
    powershell -NoExit -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://install-windows.boxlang.io'))"
    boxlang --version
    ```

### BoxLang Version Manager (BVM)

=== "macOS / Linux"
    ```bash
    curl -fsSL https://install-bvm.boxlang.io | bash -s -- --with-jre

    # reload your shell: source ~/.bashrc (or ~/.zshrc)
    bvm install latest
    bvm doctor
    ```

=== "Homebrew"
    ```bash
    brew tap ortus-boxlang/boxlang
    brew install ortus-boxlang/boxlang/bvm
    bvm install latest
    ```

=== "Windows"
    ```powershell
    # run in PowerShell
    iwr -useb https://downloads.ortussolutions.com/ortussolutions/boxlang-quick-installer/install-bvm.ps1 | iex

    # restart your terminal, then
    bvm install latest
    boxlang --version
    ```

Full options are in the [quick installer](https://boxlang.ortusbooks.com/getting-started/installation/boxlang-quick-installer) and [BVM](https://boxlang.ortusbooks.com/getting-started/installation/boxlang-version-manager-bvm) docs.

## 2. Add CommandBox

The same command on every operating system:

```bash
bx-module install bx-cli
box version
```

To upgrade later:

```bash
bx-module update bx-cli
```

!!! tip "Java 21 or newer"
    The installers can fetch Java for you with `--with-jre`. Check an existing install with `java -version`.

!!! info "Already use CommandBox?"
    The `box` command, your `box.json` and your `server.json` keep working.

## Which installer?

Both install the same BoxLang runtime, MiniServer, helper scripts and command line tools. The only difference is that BVM adds version management on top.

| | Quick installer | BoxLang Version Manager (BVM) |
|---|---|---|
| Versions on the machine | One, system wide | Many, side by side |
| Default | The latest stable | You choose, `bvm install latest` |
| Switch versions | Reinstall | `bvm use <version>` |
| Pin a version per project | No | `bvm local` writes a `.bvmrc` |
| Stable and snapshot builds | By argument | Install both, switch freely |
| List and health checks | No | `bvm list`, `bvm list-remote`, `bvm doctor` |
| Best for | Production servers on one version | Developers who juggle projects |

Not sure? Start with the quick installer. You can move to BVM later.

## Then what?

- Follow the [course](../course/index.md), 15 short lessons from first command to CI.
- Read the [documentation](https://commandbox.ortusbooks.com).
- Browse packages on [ForgeBox](https://www.forgebox.io).
