| name | commandbox-setup |
| description | Use this skill for installing, configuring, and upgrading CommandBox CLI: Homebrew install on Mac, apt-get on Linux, Windows install, Java requirements, custom home directory, upgrading CommandBox, light/thin binaries, non-Oracle JRE setup, and first-run configuration. |
CommandBox Setup & Installation
Overview
CommandBox is a standalone CLI tool for Windows, Mac, and Linux that provides a command line interface for CFML/BoxLang development, package management, embedded servers, and automation. Written in CFML on top of WireBox, Undertow, and Lucee.
- Java requirement: Java 11+ required (Java 21+ recommended for BoxLang runtime)
- Disk space: 250MB+ free
- RAM: 256MB+ for CLI (servers require additional memory)
- Home directory:
~/.CommandBox/ (or customized via commandbox_home)
Installation
macOS — Homebrew (Recommended)
brew install commandbox
brew tap ortus-solutions/homebrew-boxtap
brew install --head ortus-solutions/homebrew-boxtap/commandbox
brew upgrade commandbox
brew install commandbox@5.1.1
brew unlink commandbox
brew link commandbox@5.1.1
After install, run box to complete the one-time unpacking:
box
Linux — apt-get
sudo apt install libappindicator3-dev
sudo apt install libappindicator-dev
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -
echo "deb https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
sudo apt-get update && sudo apt-get install commandbox
curl -fsSl https://downloads.ortussolutions.com/KEYS | sudo rpm --import -
echo -e "[commandbox]\nname=CommandBox\nbaseurl=https://downloads.ortussolutions.com/rpms/noarch\nenabled=1\ngpgcheck=1\ngpgkey=https://downloads.ortussolutions.com/KEYS" | sudo tee /etc/yum.repos.d/commandbox.repo
sudo yum install commandbox
Windows
- Download
box.exe from downloads.ortussolutions.com
- Place
box.exe in a directory on your PATH
- Run
box.exe to complete first-time unpacking
- On Windows 10+: If SmartScreen blocks, click "More info" → "Run anyway"
Manual Install (Any Platform)
box
Custom Home Directory
By default, CommandBox unpacks into ~/.CommandBox. Override with:
Command-line flag:
box -commandbox_home=/custom/path
commandbox.properties file (place in same directory as the binary):
commandbox_home=/custom/path
# or relative path
commandbox_home=../boxHome
Note: On Homebrew installs, place commandbox.properties in /opt/homebrew/Cellar/commandbox/<version>/libexec/bin/
Light & Thin Binaries
CommandBox offers smaller binaries for environments where size matters:
| Binary | Description |
|---|
| Standard | Full install with all core modules |
| Light | No server or forgebox modules bundled |
| Thin | No modules bundled — all downloaded on first run |
Java Version Management
CommandBox embeds its own JRE or uses the system JRE:
box java version
box java list
box java install openjdk21
For non-Oracle JREs (e.g., OpenJDK, Azul Zulu):
export JAVA_HOME=/path/to/openjdk21
box
Upgrading CommandBox
upgrade
brew upgrade commandbox
version
Warning: Homebrew upgrade erases the current Cellar folder. Back up commandbox.properties before upgrading.
First-Run Configuration
box
version
upgrade
config set endpoints.forgebox.APIToken=your-api-key
Verify Installation
box version
box echo "CommandBox is working!"
box list --system