BoxLang 🚀 A New JVM Dynamic Language Learn More...
This is the official ContentBox CLI for interacting with ContentBox headless instances and also for allowing you to create and manage ContentBox installations.
Apache License, Version 2.0.
Install the commands via CommandBox like so:
box install contentbox-cli
You can use the CLI for many thing like installing ContentBox, creating widgets, themes, and much more. More importantly, the CLI is the official way to install ContentBox from version 5 forwards. It is a gargantuan task to be able to maintain more than 4 CFML engines against 4 major databases. That's why this CLI was built, to make things easier for installing and working with ContentBox across the board.
We have created the install
and the install-wizard
commands so you can easily install ContentBox on any OS, using any supported CFML engine and supported database. Here are the supported engines and databases:
Before using the commands you must do two things:
# Start the CommandBox shell
box
# Create and move into the directory where we will install your site
mkdir --cd mySite
The install
command is meant to be used without user interactivity. It is great for automation and setting up ContentBox sites with no user input. The install-wizard
command is meant to be used as a wizard that will guide you through the installation process.
# Automated install
contentbox install name="MySite" databaseType="MySQL8" databaseUsername="root" databasePassword="mysql"
# Wizard install
contentbox install-wizard
The install
command has several arguments you can use in order to install ContentBox. Please note the arguments with the required
prefix.
required name
- The name of the sitecfmlEngine = "lucee@5"
- The CFML engine to usecfmlPassword = "contentbox"
- The password to seed the CFML Admin withcoldboxPassword = "contentbox"
- The password to seed the ColdBox application withrequired databaseType
- The database type you are installing againstdatabaseHost = "localhost"
- The host location for your databasedatabasePort=""
- The database portrequired databaseUsername
- The database connection useranmerequired databasePassword
- The database connection passworddatabaseName = "contentbox"
- The name of the databaseboolean production = false
- Is this a development site or a production siteboolean deployServer = true
- If true, we will deploy the CFML Engine on CommandBox in the directory you chose for installation. Else, we just prepare everything for you to run the folder within your CFML installation.boolean verbose = false
- Verbose logging to the cliThe available CFML Engines are:
lucee@5
adobe@2016
adobe@2018
adobe@2021
The available RDBMS are:
HyperSonicSQL
MySQL5
MySQL8
MicrosoftSQL
PostgreSQL
Oracle
Once you run the command, this command will do the following procedures:
contentbox-site
coldbox
.env
in the root with the appropriate secrests and credentials to your databasebox.json
in your root configured with all dependencies and migrations connection information to your databaseserver.json
in your root configured to your CFML engine of choice.That's it, enjoy ContentBox.
Here are some example commands for installation:
# Install against MySQL 8 with Lucee
contentbox install name="MySite" databaseType="MySQL8" databaseUsername="root" databasePassword="mysql"
# Install against MySQL 8 with Adobe 2018
contentbox install name="MySite" cfmlEngine="adobe@2018" databaseType="MySQL8" databaseUsername="root" databasePassword="mysql"
# Install against Microsoft SQL Server with Adobe 2018
contentbox install name="MySite" cfmlEngine="adobe@2018" databaseType="MicrosoftSQL" databaseUsername="sa" databasePassword="sqlserver"
# Install against Lucee and PostgreSQL
contentbox install name="MySite" databaseType="PostgreSQL" databaseUsername="myRole" databasePassword="myPassword"
I THANK GOD FOR HIS WISDOM FOR THIS PROJECT
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
box
binary removed, not sure why it was there in the first placedeployServer
so you can choose to deploy or not a CommandBox server when installing ContentBoxinstall-wizard
command.appcfc
missing variable when updating Lucee + MySQL 8 bug for DDL creation.
$
box install contentbox-cli