---
title: Install and Verify
summary: Install BoxLang, add CommandBox on top of it, and confirm it works.
icon: phosphor-duotone:download-simple
tags: [course]
---

In this lesson you will install BoxLang, add CommandBox to it, and check that the `box` command works. CommandBox now runs on BoxLang, so BoxLang always comes first.

## 1. Install BoxLang

::: stepper
::: step "Run the quick installer"
=== "macOS / Linux"
    ```bash
    /bin/bash -c "$(curl -fsSL https://install.boxlang.io)"
    ```

=== "Windows"
    ```bash
    powershell -NoExit -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://install-windows.boxlang.io'))"
    ```
:::
::: step "Need Java too?"
On macOS and Linux, add `--with-jre` to have the installer fetch Java 21 for you.
:::
:::

## 2. Add CommandBox

CommandBox is a BoxLang module called `bx-cli`. Install it with the BoxLang module installer:

```bash
bx-module install bx-cli
```

## 3. Verify

```bash
box version
```

You should see the CommandBox version number printed. The latest release is {{ latestVersion }}.

!!! tip "Open a new terminal"
    If `box` is not found right after installing, open a fresh terminal window so your `PATH` is reloaded.

## Updating

CommandBox is a BoxLang module, so you upgrade it like any other module:

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

Run `box version` again afterwards to confirm the new version.

## Recap

- BoxLang is installed first, with the quick installer for your OS.
- CommandBox is added with `bx-module install bx-cli`.
- `box version` verifies the install, and `bx-module update bx-cli` updates it.
