Learn CommandBox
A free course of 15 short lessons from your first command to servers, automation and CI.
Fifteen short lessons, in order, from your first box command to servers, automation and CI. Every lesson has something to run and a short recap.
The lessons cover basics (install, the shell, box.json), package management (install, versions, dev dependencies, publishing to ForgeBox), servers (start, server.json, rewrites and SSL), automation (scripts, tasks, your own commands) and shipping (TestBox, CI and Docker).
Your progress is remembered in this browser, so you can pick up where you left off.
- Install and VerifyInstall BoxLang, add CommandBox on top of it, and confirm it works.
- The Shell and REPLUse the interactive shell, tab completion, history, help and the REPL.
- Your First box.jsonCreate a box.json with init and read or change it with package show and package set.
- Installing PackagesInstall packages from ForgeBox, Git, a URL or a folder, then list and remove them.
- Versions and SemverControl which versions you accept with semver ranges, then check and update them.
- Dev DependenciesKeep test and build tools out of production with --saveDev and --production.
- Publishing to ForgeBoxPackage your project, log in, and publish it to ForgeBox with versioning.
- Running a ServerStart, inspect, open and stop an embedded server from your project folder.
- server.jsonSave your server settings in a portable server.json instead of repeating flags.
- Rewrites and SSLEnable clean URLs and local HTTPS on your embedded server.
- Package ScriptsAutomate repeat work with scripts in box.json, run them by name, and hook into CommandBox lifecycle events.
- Task RunnersWrite a task file, give it targets and arguments, and run it with task run.
- Writing Your Own CommandsBuild a custom command in a module, document it with help, and see which modules already extend CommandBox.
- TestBox from the CLIInstall the TestBox CLI, run your suite, watch for changes, and pick output formats.
- CI and DockerRun installs and tests in a pipeline, use the official Docker image, and set up CommandBox in GitHub Actions.