Skip to content

Setting up with CommandBox

Pete Freitag edited this page Apr 7, 2017 · 7 revisions

Setting up with CommandBox

CommandBox is a great tool for many reasons, but one of the best features is that you can easily start a ColdFusion server of (almost) any version. CommandBox will take care of downloading the server for you and starting it on a random (or specified) port number.

First you need CommandBox

Head over to the CommandBox download page and select the binary under With JRE Included that matches your operating system and bitness (you probably want 64 bit).

Copy the box.exe file (windows) or box file (mac) to a folder, for example we will assume if you are on windows that it is here: c:\Downloads\box.exe and on Mac ~/Downloads/box (where ~ is your home directory).

You may want to copy the file to another more permanent location once you see how cool it is!

Download the source code repository

Download the zip archive of this repository and unzip it into the Downloads folder, it should extract to a folder called cfml-security-training-master.

Open Command Prompt (windows) or Terminal.app (mac) and use the cd command to navigate to your Downloads directory.

cd /Downloads/cfml-security-training-master/wwwroot

Now use box to start a ColdFusion 2016 server (windows):

c:\downloads\box.exe server start cfengine=adobe@2016

If you are on a mac:

~/Downloads/box server start cfengine=adobe@2016

The box command will download CF 2016 and start it up on a random port, once it is finished it should open the browser to the website.

Clone this wiki locally