You can specify the CFML engine via the command line arguments:
This will start an Adobe ColdFusion 9 server in your webroot. That's it!
By default, CommandBox uses the
cfengineslug to search for the engine on ForgeBox. The format is
[email protected]where the version is optional. Ortus Solutions maintains the versions of the engines available on ForgeBox.
Supported engines are:
- Adobe ColdFusion 9 **
- Adobe ColdFusion 10
- Adobe ColdFusion 11
- Adobe ColdFusion 2016
- Adobe ColdFusion 2018
- Railo 4.2
- Lucee 4.5
- Lucee 5
Here are some examples:
# Start the default engine
# Start the latest stable Railo engine
CommandBox> start cfengine=railo
# Start a specific engine and version
# Start the most recent Adobe server that starts with version "11"
# Start the most recent adobe engine that matches the range
CommandBox> start cfengine="[email protected]>9.0 <=11"
Engines are downloaded and stored in your CommandBox artifacts folder. You can view your engines and clear them using the standard artifacts commands:
CommandBox> artifacts list
# Removes all adobe servers currently in the artifacts
# These servers will need to be re-downloaded the next time they are started
CommandBox> artifacts remove adobe
** Note: Adobe ColdFusion 9 does not support Java 8. To run ColdFusion 9 you must first install Java 6 or 7. Then change the CommandBox java version, by doing one of the following:
- Update the OS default, defined in the
JAVA_HOMEenvironment variable, with the Java 6/7 JRE directory
- Copy the Java 6/7 JRE folder into the CommandBox installation directory, and rename the subfolder "jre".For example, if the new JRE is installed in
C:\Program files\java\jre7copy it to
C:\CommandBox\jreNote: This version will take precedence over
JAVA_HOMERestart CommandBox to apply the changes.
While Lucee asks for a password the first time running the admin, ColdFusion requires a username and password when CommandBox sets it up. The default username and password for the Adobe ColdFusion servers used are:
Additionally, CommandBox can start any WAR given to it using the
CommandBox> start WARPath=/var/www/myExplodedWAR
CommandBox> start WARPath=/var/www/myWAR.war
If you run a regular
startcommand inside of a folder that has a
/WEB-INF/web.xmlfile, CommandBox will treat that folder as a WAR.
cfengineparameter can accept any valid CommandBox endpoint ID. That means it can be an HTTP URL, a Git repo, a local folder path to your company's network share, or a custom ForgeBox entry you've created. As long as that endpoint resolves to a package that contains these files, you're good:
Engine.[zip|war](file name doesn't matter)
CommandBox will download the package, unzip it and use the WAR/zip file as the engine for your app.
Normally, the artifacts cache isn't used for non-ForgeBox packages, but CommandBox will only download the engine once per server and then assume the file hasn't changed. You will need to forget the server to trigger a new download.
Here's an example of starting up a web server using a direct download link to a package containing a WAR file:
CommandBox> start cfengine=http://downloads.ortussolutions.com/adobe/coldfusion/9.0.2/cf-engine-9.0.2.zip
You can set the
cfengineand other related configuration options in your
server.jsonto use them every time you start your app.
CommandBox> server set app.cfengine=adobe
CommandBox> server set app.WARPath=/var/www/my-app
These commands would create the following
Just a reminder that starting a server with any command line arguments will save the arguments to your
This command would add
[email protected]to your
server.json. If this is not what you want, you can append
--!saveSettingswhen you start your server and CommandBox will not save the arguments you specify to your