Skip to main content

Commandbox Commands

Install Coldbox MVC and Deploy App

box mkdir /opt/hermes/webapps/Coldbox-Hermes
cd /opt/hermes/webapps/Coldbox-Hermes
box install coldbox
box coldbox create app HermesSEG

Start Server

box server start host=0.0.0.0 port=8282 --rewritesEnable

Start Server with Lucee Admin Enabled

box server start host=0.0.0.0 port=8282 BlockCFAdmin=false --rewritesEnable

Stop Server

box server stop

Deploy Coldbox App

box coldbox create app myApp

Create handler

CommandBox> coldbox create handler helloWorld index,add,edit,list

Re-initialize Framework

http://IP_ADDRESS:8282/?fwreinit=1

Install Packages

Full list of packages/modules available on forgebox: https://forgebox.io/type/modules

Below is a list of helpful examples:

  • BCrypt -- Industry-standard password hashing

  • cbdebugger -- For debugging Coldbox apps

  • cbjavaloader - For interacting with Java classes and libraries

  • cbMarkdown - For writing in markdown

  • cbMessagebox -- Display nice error/success messages

  • cborm -- Awesome ORM Services

  • cb18n -- For multilingual sites

  • cbt - ColdBox templating language

  • cbValidation - Back-end validation framework

  • qb - Fluent query builder and schema builder

  • route-visualizer - For visualizing your application routes

Install package from Commandbox prompt

install cbmessagebox

Install package from root prompt

box install cbmessagebox
Commandbox> install cbmessagebox
root@localhost: box install cbmessagebox