Install and Verify
Install BoxLang, add CommandBox on top of it, and confirm it works.
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
1
Run the quick installer
/bin/bash -c "$(curl -fsSL https://install.boxlang.io)"
powershell -NoExit -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://install-windows.boxlang.io'))"
2
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:
bx-module install bx-cli
3. Verify
box version
You should see the CommandBox version number printed. The latest release is 7.0.0.
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:
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 versionverifies the install, andbx-module update bx-cliupdates it.