Show Menu

CommandBox Cheat Sheet by

coldbox     commandbox

Getting Started

What is CommandBox
CommandBox is a standa­lone, native tool for Windows, Mac, and Linux that will provide you with a Command Line Interface (CLI) for developer produc­tivity, tool intera­ction, package manage­ment, embedded CFML server, applic­ation scaffo­lding, and some sweet ASCII art.
Download
Docume­ntation
Getting Started

Server Commands

Start the default engine (Lucee)
start
Start most recent Adobe Server 2018
start cfengi­ne=­ado­be@2018
Start most recent Adobe Server 2016
start cfengi­ne=­ado­be@2016
Start most recent Adobe Server 11
start cfengi­ne=­ado­be@11
Start most recent Lucee 5
start cfengi­ne=­lucee
Start server with rewrites enabled
start --rewr­ite­sEnable
ColdFusion Admin Username
admin
ColdFusion Admin Password
commandbox

ColdBox

Descri­ption
ColdBox is a conven­tions modular MVC develo­pment platform for ColdFusion (CFML).
Docume­ntation
Install
box install coldbox
ColdBox Getting Started
Create new applic­ation
coldbox create app MyPlay­ground
Create ColdBox App
coldbox create app <te­mpl­ate>
Create ColdBox App Wizard
coldbox create app-wizard
ColdBox Template Descri­ptions

Misc

CommandBox Properties File (must be in same directory as exe)
comman­dbo­x.p­rop­erties
Specify CommandBox Home
comman­dbo­x_h­ome­=Z:­\\C­omm­and­Box­\\C­omm­and­Box­Files
Play Snake
snake
CommandBox Bullet Train
install comman­dbo­x-b­ull­et-­train
 

CFConfig

Descri­ption
This is a CommandBox module that provides a CLI for reading, writing, and storing config­uration for all CF engines.
URL
Install
box install comman­dbo­x-c­fconfig
Update
box update --system
View all config­uration
cfconfig show
Export config from a server
cfconfig export myConf­ig.json
Import config to a server
cfconfig import myConf­ig.json
Set a config­uration setting
cfconfig set adminP­ass­wor­d=c­omm­andbox

Ngrok

Descri­ption
Ngrok is a service that will proxy a locall­y-r­unning server to the Internet where any coworker, friend, or client with a browser can view the local site site you have running. Use this to demo a new site or ask a friend to look at an error for you. This is also great for testing integr­ation with 3rd party systems (like Stripe webhooks) while still developing on localhost!
Docume­ntation
Install
box install box-ngrok
Start a share
server share start
Stop a share
server share stop
Start sharing - server already running
share
Stop sharing - server already running
share stop

Download the CommandBox Cheat Sheet

2 Pages
//media.cheatography.com/storage/thumb/garciadev_commandbox.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.