Get started
Install BoxLang, then add CommandBox with one command.
On this page
Install BoxLang, then add CommandBox with one command. The latest CommandBox release is v7.0.0.
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.
Quick installer
/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
brew tap ortus-boxlang/boxlang
brew install ortus-boxlang/boxlang/boxlang
install-boxlang
boxlang --version
powershell -NoExit -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://install-windows.boxlang.io'))"
boxlang --version
BoxLang Version Manager (BVM)
curl -fsSL https://install-bvm.boxlang.io | bash -s -- --with-jre
# reload your shell: source ~/.bashrc (or ~/.zshrc)
bvm install latest
bvm doctor
brew tap ortus-boxlang/boxlang
brew install ortus-boxlang/boxlang/bvm
bvm install latest
# 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 and BVM docs.
2. Add CommandBox
The same command on every operating system:
bx-module install bx-cli
box version
To upgrade later:
bx-module update bx-cli
The installers can fetch Java for you with --with-jre. Check an existing install with java -version.
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, 15 short lessons from first command to CI.
- Read the documentation.
- Browse packages on ForgeBox.