Installing ColdBox
Welcome to the world of ColdBox!
We are excited you are taking this development journey with us. Before we get started with ColdBox let's install CommandBox CLI, which will allow you to install/uninstall dependencies, start servers, have a REPL tool and much more. Please remember to Star us in Github.
IDE Tools
ColdBox has the following supported IDE Tools:
CommandBox CLI
The first step in our journey is to install CommandBox. CommandBox is a ColdFusion (CFML) Command Line Interface (CLI), REPL, Package Manager, and Embedded Server. We will be using CommandBox for almost every exercise in this book, and it will also allow you to get up and running with ColdFusion and ColdBox in a much speedier manner.
Download CommandBox
You can download CommandBox from the official site: https://www.ortussolutions.com/products/commandbox#download and install on your preferred Operating System (Windows, Mac, *unix). CommandBox comes in two flavors:
No Java Runtime (30mb)
Embedded Runtime (80mb)
So make sure you choose your desired installation path and follow the instructions here: https://commandbox.ortusbooks.com/setup/installation
Starting CommandBox
Once you download and expand CommandBox, you will have the box.exe
or box
binary, which you can place in your Windows Path or *Unix /usr/bin
folder to have it available system-wide. Then open the binary, and CommandBox will unpack to your user's directory: {User}/.CommandBox
. This happens only once, and the next thing you know, you are in the CommandBox interactive shell!
![](https://coldbox.ortusbooks.com/~gitbook/image?url=https%3A%2F%2F1866830488-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCEovEcRqCFusuiwouY6m%252Fuploads%252F9tD0DLaDnY2wqksF7sW8%252Fimage.png%3Falt%3Dmedia%26token%3Df18b3931-7779-4835-99a2-4f0172e258b3&width=768&dpr=4&quality=100&sign=ebcb0981&sv=1)
We can execute a-la-carte commands from our command line or go into the interactive shell for multiple commands. We recommend the interactive shell as it is faster and can remain open in your project root.
All examples in this book are based on having an interactive shell open.
Installing ColdBox CLI
We can now use CommandBox to install the ColdBox CLI to assist us in all aspects of ColdBox Development:
You will now have a coldbox
command namespace. You can do coldbox help
and get all the help you need with the commands.
Installing ColdBox
To get started, open the CommandBox binary or enter the shell by typing box
in your terminal or console. Then let's create a new folder and install ColdBox into a directory.
CommandBox will resolve coldbox
from ForgeBox (www.forgebox.io); use the latest version available, and download and install it in this folder alongside a box.json
file that represents your application package.
Tip : You can also install the latest bleeding-edge version by using the coldbox@be
slug instead, or any previous version.
CommandBox can now track this version of ColdBox for you in this directory. In the next section we will scaffold a ColdBox application using an application template.
You can find many scaffolding templates for ColdBox in our Github organization: github.com/coldbox-templates
Uninstalling ColdBox
To uninstall ColdBox from this application folder, just type uninstall coldbox
. Try it out!
Updating ColdBox
To update ColdBox from a previous version, just type update coldbox
.
Last updated